From 3b22bbf9fbed2cf799814d1d603ec3904147f0c7 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Fri, 23 Dec 2011 16:09:50 +0200 Subject: [PATCH] [custom select] Use $(window).width() and not window.innerWidth - same for height --- js/jquery.mobile.forms.select.custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.forms.select.custom.js b/js/jquery.mobile.forms.select.custom.js index 99808cad..78ffcee7 100644 --- a/js/jquery.mobile.forms.select.custom.js +++ b/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 );