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