fixed positioning of selects in touch overflow scroll mode. Fixes #2415

This commit is contained in:
scottjehl 2011-09-24 01:00:42 -04:00
parent 23e79fb1db
commit e81e3b19c0

View file

@ -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;