I would recommend using a resize event rather than orientationchange. You are going to get a resize anyway (unless it is a square device, but are there any?) and even then I supposed you'd get the resize anyway.
There are issues with timing of orientationchange on different devices. The size may or may not be correct at orientationchange, but it always is at resize.
Leave a comment on watusiware's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic