Permalink
Browse files

switch to mobile screenheight helper Fixes #3786

  • Loading branch information...
johnbender committed Mar 19, 2012
1 parent cfd13ad commit 091b407273b0281b8a1476f6373813542417b067
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

@johnbender

This comment has been minimized.

Show comment
Hide comment
@johnbender

johnbender Mar 19, 2012

Contributor

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

Contributor

johnbender commented on 091b407 Mar 19, 2012

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.