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

Commit

Permalink
better fix for the ios5 height issue with the bottom of the page.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Sep 24, 2011
1 parent 52e1022 commit 23e79fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -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 );
Expand All @@ -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() );
}

Expand Down

0 comments on commit 23e79fb

Please sign in to comment.