Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…e for height
  • Loading branch information...
commit 3b22bbf9fbed2cf799814d1d603ec3904147f0c7 1 parent 5763a79
Gabriel "_|Nix|_" Schulhof gabrielschulhof authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.forms.select.custom.js
4 js/jquery.mobile.forms.select.custom.js
View
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.