I made an interesting observation when trying to detect the user’s browser size.
I use an iPhone 5S which has a resolution of 640 x 1136.
getPage().getWebBrowser().getScreenWidth()/.getScreenHeight() returns 320 x 568 - this is ok because the Retina displays have doubled pixel density etc. (well documented on the web).
However, when using getPage().getBrowserWindowWidth()/.getBrowserWindowHeight() I get 980 x 1409 - I have no idea where these numbers come from.
I also got correct screen and browser sizes with all desktop browsers I tried.
Any hints?
Cheers,
Gunnar