Skip to content
This repository
Browse code

switch to mobile screenheight helper Fixes #3786

  • Loading branch information...
commit 091b407273b0281b8a1476f6373813542417b067 1 parent cfd13ad
John Bender authored March 19, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  js/jquery.mobile.init.js
4  js/jquery.mobile.init.js
@@ -54,9 +54,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
54 54
 	function checkLoaderPosition(){
55 55
 		var offset = $loader.offset(),
56 56
 			scrollTop = $window.scrollTop(),
57  
-			htmlHeight = $html.height();
  57
+			screenHeight = $.mobile.getScreenHeight();
58 58
 
59  
-		if( offset.top < scrollTop || (offset.top - scrollTop) > htmlHeight ) {
  59
+		if( offset.top < scrollTop || (offset.top - scrollTop) > screenHeight ) {
60 60
 			$loader.addClass( "ui-loader-fakefix" );
61 61
 			fakeFixLoader();
62 62
 			$window

1 note 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.