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.
