mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-26 00:54:43 +00:00
[custom select] Use $(window).width() and not window.innerWidth - same for height
This commit is contained in:
parent
5763a79545
commit
3b22bbf9fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue