From 23e79fb1dbba9f4eb15e29b4842579bdd0d1b100 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 24 Sep 2011 00:55:50 -0400 Subject: [PATCH] better fix for the ios5 height issue with the bottom of the page. --- js/jquery.mobile.navigation.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index cd054a2c..0733cb57 100755 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -567,7 +567,7 @@ function getScreenHeight(){ var orientation = jQuery.event.special.orientationchange.orientation(), port = orientation === "portrait", - winMin = port ? 420 : 270, + winMin = port ? 480 : 320, screenHeight = port ? screen.availHeight : screen.availWidth, winHeight = Math.max( winMin, $( window ).height() ), pageMin = Math.min( screenHeight, winHeight ); @@ -579,6 +579,10 @@ //simply set the active page's minimum height to screen height, depending on orientation function resetActivePageHeight(){ + // Don't apply this height in touch overflow enabled mode + if( $.support.touchOverflow && $.mobile.touchOverflowEnabled ){ + return; + } $( "." + $.mobile.activePageClass ).css( "min-height", getScreenHeight() ); }