How to get the correct window width on orientation change for android devices both tablets and mobiles
Why not just use the javascript screen
object. you should be able to get the screen dimensions with :
screen.height;
screen.width;
I was also stuck in this problem and find the best solution which will work on all the platforms.Below is the code of 'orientationchange' event.
function onOrientationChange(event)
{
setTimeout(function(){
'Enter you code here';
},200);
}
Hope, it will help you and most of other too.. Cheers.