small change improving the resizing on iPads

This commit is contained in:
Adriaan Wormgoor 2013-08-16 22:26:32 +02:00
parent 39157ab392
commit aa82d6daa8
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ function doClientAndOrientationStuff() {
var ww = 0; //get proper width
if (window.screen.availWidth) {
ww = window.screen.availWidth;
if( /iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
ww = window.innerWidth;
}
} else if($(window).width()) {
ww = $(window).width();
} else {