Hi,
I've got a GWT app which simply reports the client width:
Label label = ...;
label.setText("Client width: " + Window.getClientWidth());
I'm getting strange results on an iphone 4S (retina device).
When run from mobile safari, it reports 980 pixels, which is expected.
I then created a native ios app, dropped a full-width UIWebView in. Loading
the same page on the same device from the UIWebView, it reports 320 pixels.
I can't figure out what's going on with the UIWebView - it seems like it's
forcing the page to think it's 320 pixels wide. Has anyone else experienced
this?
I'm writing a game with <canvas>, and I'd like a 1:1 mapping to device
pixels.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/ZAqidZc6kxQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.