Skip to content
This repository
Browse code

[custom select] Use $(window).width() and not window.innerWidth - sam…

…e for height
  • Loading branch information...
commit 3b22bbf9fbed2cf799814d1d603ec3904147f0c7 1 parent 5763a79
Gabriel "_|Nix|_" Schulhof authored December 23, 2011

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

  1. 4  js/jquery.mobile.forms.select.custom.js
4  js/jquery.mobile.forms.select.custom.js
@@ -300,8 +300,8 @@
300 300
 					tScrollElem = activePage.is( ".ui-native-fixed" ) ? activePage.find( ".ui-content" ) : activePage,
301 301
 					scrollTop = tOverflow ? tScrollElem.scrollTop() : $( window ).scrollTop(),
302 302
 					btnOffset = self.button.offset().top,
303  
-					screenHeight = window.innerHeight,
304  
-					screenWidth = window.innerWidth;
  303
+					screenHeight = $(window).height(),
  304
+					screenWidth = $(window).width();
305 305
 
306 306
 				//add active class to button
307 307
 				self.button.addClass( $.mobile.activeBtnClass );

0 notes on commit 3b22bbf

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