Merge pull request #3329 from gabrielschulhof/fix-custom-select-menu-position-in-IE8

Fix custom select menu popup positioning in IE8
This commit is contained in:
Todd Parker 2011-12-23 11:04:57 -08:00
commit aaeacae9e0

View file

@ -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 );