Wednesday, February 5, 2014

Re: GWT sizing issue in iOS 7 Safari (with all apps using DockLayoutPanel?)

I don't know anything about this specific issue, but I did just have similar problems with me mgwt based app getting cut off on iPhone 5(ish) and newer.

I fixed it by adjusting the viewport scale. I had been seeing it to 1 in the html and not setting it via mgwt utilities. This worked fine on my fourth gen ipod touch but not on an iphone 5.

Now I always set the viewport scale to 0.75 using mgwt on these devices.

This caused another problem where my app no longer filled the height of the iphone 5. I then discovered that the mgwt functions setWidthToDevicWidth and setHeightToDeviceHeight work better when setting the viewport for the second time. This fixed the second issue.

The short story is, it looks like not all versions of iDevices handle scaling the same way and messing with the viewport might help.


On Tuesday, February 4, 2014 1:52:40 PM UTC-6, Phineas Gage wrote:
It seems that with all GWT apps using DockLayoutPanel on iOS 7 Safari, there is a vertical size issue where some content can get cut off. As an example, take an iPad and check out the GWT Mail sample:


or even the tab bar in the MGWT showcase:


In both cases, some pixels from the bottom or top of the page can get cut off. Changing device orientation can make it better, or worse.

Does anyone know of a fix for this?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/groups/opt_out.

No comments:

Post a Comment