Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e81e3b19c01ea60be46be09e63c6db89c0457046 1 parent 23e79fb
scottjehl authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/jquery.mobile.forms.select.custom.js
View
5 js/jquery.mobile.forms.select.custom.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.