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

Commit 091b407

Browse files
committed
switch to mobile screenheight helper Fixes #3786
1 parent cfd13ad commit 091b407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.mobile.init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
5454
function checkLoaderPosition(){
5555
var offset = $loader.offset(),
5656
scrollTop = $window.scrollTop(),
57-
htmlHeight = $html.height();
57+
screenHeight = $.mobile.getScreenHeight();
5858

59-
if( offset.top < scrollTop || (offset.top - scrollTop) > htmlHeight ) {
59+
if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
6060
$loader.addClass( "ui-loader-fakefix" );
6161
fakeFixLoader();
6262
$window

0 commit comments

Comments
 (0)