Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switch to mobile screenheight helper Fixes #3786

  • Loading branch information...
commit 091b407273b0281b8a1476f6373813542417b067 1 parent cfd13ad
John Bender johnbender authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.init.js
4 js/jquery.mobile.init.js
View
@@ -54,9 +54,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
function checkLoaderPosition(){
var offset = $loader.offset(),
scrollTop = $window.scrollTop(),
- htmlHeight = $html.height();
+ screenHeight = $.mobile.getScreenHeight();
- if( offset.top < scrollTop || (offset.top - scrollTop) > htmlHeight ) {
+ if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
$loader.addClass( "ui-loader-fakefix" );
fakeFixLoader();
$window

1 comment on commit 091b407

John Bender

The tag Fixes should probably be applied to the parent commit cfd13ad, or maybe I should have squashed the two :/

Please sign in to comment.
Something went wrong with that request. Please try again.