Tuesday, October 20, 2015

Re: GWT app shows wrong on iPad/Safari?

Try to add the following line to the head section in your HTML file:

<meta name="viewport" content="width=device-width, initial-scale=1">

I think that the viewport meta tag was introduced by Apple in Safari on iOS and it's now supported by several other mobile web browsers as well. As far as I know, desktop we browsers ignore the viewport meta tag.

/Stefan


Den tisdag 20 oktober 2015 kl. 05:30:04 UTC+2 skrev Magnus:


On Saturday, October 17, 2015 at 3:18:11 PM UTC+2, james0072 wrote:

No, but the page you pointed to sounds like there could be a solution.
But if I add a viewport tag, what about the "normal" PCs where my app already shows correctly?

And what width should I set in the viewport?
I don't know the device my app is running on. Do I have to "detect" the device and set the viewport then? Sounds cumbersome...

Thank you
Magnus

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment