Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
fixed positioning of selects in touch overflow scroll mode. Fixes #2415
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Sep 24, 2011
1 parent 23e79fb commit e81e3b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/jquery.mobile.forms.select.custom.js
Expand Up @@ -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;
Expand Down

0 comments on commit e81e3b1

Please sign in to comment.