Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 23e79fb

Browse files
author
scottjehl
committed
better fix for the ios5 height issue with the bottom of the page.
1 parent 52e1022 commit 23e79fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@
567567
function getScreenHeight(){
568568
var orientation = jQuery.event.special.orientationchange.orientation(),
569569
port = orientation === "portrait",
570-
winMin = port ? 420 : 270,
570+
winMin = port ? 480 : 320,
571571
screenHeight = port ? screen.availHeight : screen.availWidth,
572572
winHeight = Math.max( winMin, $( window ).height() ),
573573
pageMin = Math.min( screenHeight, winHeight );
@@ -579,6 +579,10 @@
579579

580580
//simply set the active page's minimum height to screen height, depending on orientation
581581
function resetActivePageHeight(){
582+
// Don't apply this height in touch overflow enabled mode
583+
if( $.support.touchOverflow && $.mobile.touchOverflowEnabled ){
584+
return;
585+
}
582586
$( "." + $.mobile.activePageClass ).css( "min-height", getScreenHeight() );
583587
}
584588

0 commit comments

Comments
 (0)