Browse files

Merge pull request #3329 from gabrielschulhof/fix-custom-select-menu-…

…position-in-IE8

Fix custom select menu popup positioning in IE8
  • Loading branch information...
2 parents 5763a79 + 3b22bbf commit aaeacae9e0a732e8ce73f2b322d2ae5a39b94f77 @toddparker toddparker committed 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 aaeacae

Please sign in to comment.