mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fixed positioning of selects in touch overflow scroll mode. Fixes #2415
This commit is contained in:
parent
23e79fb1db
commit
e81e3b19c0
1 changed files with 4 additions and 1 deletions
|
|
@ -298,7 +298,10 @@
|
|||
var self = this,
|
||||
menuHeight = self.list.parent().outerHeight(),
|
||||
menuWidth = self.list.parent().outerWidth(),
|
||||
scrollTop = $( window ).scrollTop(),
|
||||
activePage = $( ".ui-page-active" ),
|
||||
tOverflow = $.support.touchOverflow && $.mobile.touchOverflowEnabled,
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue