[custom select] Use $(window).width() and not window.innerWidth - same for height

This commit is contained in:
Gabriel Schulhof 2011-12-23 16:09:50 +02:00
parent 5763a79545
commit 3b22bbf9fb

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