We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e79fb commit e81e3b1Copy full SHA for e81e3b1
js/jquery.mobile.forms.select.custom.js
@@ -298,7 +298,10 @@
298
var self = this,
299
menuHeight = self.list.parent().outerHeight(),
300
menuWidth = self.list.parent().outerWidth(),
301
- scrollTop = $( window ).scrollTop(),
+ activePage = $( ".ui-page-active" ),
302
+ tOverflow = $.support.touchOverflow && $.mobile.touchOverflowEnabled,
303
+ tScrollElem = activePage.is( ".ui-native-fixed" ) ? activePage.find( ".ui-content" ) : activePage;
304
+ scrollTop = tOverflow ? tScrollElem.scrollTop() : $( window ).scrollTop(),
305
btnOffset = self.button.offset().top,
306
screenHeight = window.innerHeight,
307
screenWidth = window.innerWidth;
0 commit comments