Browse files

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

…e for height
  • Loading branch information...
1 parent b370341 commit 79957b436a54549369afbf5cf6d15d63a950414d @gabrielschulhof committed with Wilto Dec 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.forms.select.custom.js
View
4 js/jquery.mobile.forms.select.custom.js
@@ -300,8 +300,8 @@
tScrollElem = activePage.is( ".ui-native-fixed" ) ? activePage.find( ".ui-content" ) : activePage,
scrollTop = tOverflow ? tScrollElem.scrollTop() : $( window ).scrollTop(),
btnOffset = self.button.offset().top,
- screenHeight = window.innerHeight,
- screenWidth = window.innerWidth;
+ screenHeight = $(window).height(),
+ screenWidth = $(window).width();
//add active class to button
self.button.addClass( $.mobile.activeBtnClass );

0 comments on commit 79957b4

Please sign in to comment.