getScreenSize get orientation

44 views
Skip to first unread message

carrot...@gmail.com

unread,
Apr 22, 2014, 9:45:12 PM4/22/14
to ormma-di...@googlegroups.com
getScreenSize do not get the orientation when changing the device orientation from portait to landscape,specific description as below:
Testing precondition(without registerring screenChange and orientationChange event)
calling getScreenSize ,get (400x500),and then change the orientation from portrait to landscape,still call it again to get (400x500) though,i just want to confirm that only having to  registerring screenChange and orientationChange event, i can get diff screensize(from 400x500 to 500x400)?

Nathan Carver

unread,
Apr 23, 2014, 8:59:23 AM4/23/14
to ormma-di...@googlegroups.com
getScreen size "returns the current actual pixel width and height, based on the current orientation", so if your calls to mraid.getScreenSize are returning the same values in both landscape and portrait, then you should contact your SDK vendor, and possibly the IAB if they have declared themselves as MRAID compliant.

It is important to note that while ORMMA (the earlier specification) did have an orientationChange event, there is no MRAID orientationEvent. For MRAID, you would listen to the browser events.

Thanks,
-Nathan



--
You received this message because you are subscribed to the Google Groups "ORMMA-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ormma-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages