mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
better fix for the ios5 height issue with the bottom of the page.
This commit is contained in:
parent
52e1022697
commit
23e79fb1db
1 changed files with 5 additions and 1 deletions
|
|
@ -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() );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue