[SailfishDevel] Creating a Webapp Application with WebView

Saija Saarenpää setelani at live.com
Sat Aug 16 10:03:17 UTC 2014


Hi,

I don't understand what's the problem here. 960 x 540 is the correct resolution of Jolla, why should it be something else?

- Saija

Lähetetty iPadista

> "Daniel Beck" <d.danielbeck at googlemail.com> kirjoitti 16.8.2014 kello 12.56:
> 
> Hello, 
> 
> I would like to create a webapp game application that runs inside a WebView.
> The problem is that the resolution reported by the HTML application is 960x540. The viewport of the HTML is set as follows: 
> <meta name="viewport" content="width=device-width, initial-scale=1"> 
> 
> Apparently, the webview does not honnor the device pixel ration (DPR) of the device. 
> Is there some property/configuration I can set for this in the QML? 
> 
> WebView {
>                           id: webView
>                           anchors.fill: parent
>                           url: "index.html"
> }
> 
> 
> Thanks
> Daniel
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140816/af6ba8e5/attachment.html>
-------------- next part --------------
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org


More information about the Devel mailing list