Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

better fix for the ios5 height issue with the bottom of the page.

  • Loading branch information...
commit 23e79fb1dbba9f4eb15e29b4842579bdd0d1b100 1 parent 52e1022
scottjehl authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.navigation.js
View
6 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() );
}
Please sign in to comment.
Something went wrong with that request. Please try again.