Hi Dave, thanks for your js fiddle. i obtain correct dimensions on my nexus 7 (chrome browser) as well. So as you said propably i get the wrong dimensions because of my html / css structure, not sure why but at least it seems that it isn't a bug in mootools. I solved my issue by querying for android devices ...
Georg Am Dienstag, 4. Februar 2014 10:51:43 UTC+1 schrieb davepilbeam: > > > Hi, > > there doesn't seem to be a problem with screen rotation and getSize() on > an S2 (android 4.1.2 chrome browser) - > http://jsfiddle.net/davepilbeam/jzP7F/ displays as expected in any > orientation > > are you using any responsive css? I found recently that measuring the > viewport with any js (including getSize) before my responsive css gave me > wrong co-ordinates in mobile chrome android.. > > Dave > > > On Saturday, 25 January 2014 15:22:30 UTC, snillo wrote: >> >> i forgot; i'm using mootools 1.4.5, i'm calling window.getSize() on >> domready. The tablet is a Nexus 7 (browser = chrome), i have the same >> behaviour on my Samsung S2 (standart browser android 4.1) >> >> Am Donnerstag, 23. Januar 2014 19:02:34 UTC+1 schrieb snillo: >>> >>> Hi, >>> >>> did anyone else had problems with window.getSize() on Android devices? >>> If i hold my tablet in landscape mode, i get a wrong width. In portrait >>> mode the width is correct. >>> Using window.innerWidth works in both cases. >>> I have no meta tag for viewport configuration, website is with HTML5 >>> doctype. >>> >>> Georg >>> >> -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
