From aa82d6daa836a398a88b3340c6e9958903ec6d63 Mon Sep 17 00:00:00 2001 From: Adriaan Wormgoor Date: Fri, 16 Aug 2013 22:26:32 +0200 Subject: [PATCH] small change improving the resizing on iPads --- js/init_layout.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/init_layout.js b/js/init_layout.js index 547b0f9..46ae007 100644 --- a/js/init_layout.js +++ b/js/init_layout.js @@ -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 {