getScreenSize get orientation

Skip to first unread message

Apr 22, 2014, 9:45:12 PM4/22/14
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

Apr 23, 2014, 8:59:23 AM4/23/14
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.


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
For more options, visit

Reply all
Reply to author
0 new messages