We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556a4e3 commit 541f963Copy full SHA for 541f963
js/widgets/forms/select.custom.js
@@ -352,12 +352,17 @@ define( [
352
_decideFormat: function() {
353
var self = this,
354
$window = $.mobile.window,
355
+ // Show popup container so that menuHeight will be reported correctly
356
+ popupContainer = self.listbox.parent().show(),
357
selfListParent = self.list.parent(),
358
menuHeight = selfListParent.outerHeight(),
359
scrollTop = $window.scrollTop(),
360
btnOffset = self.button.offset().top,
361
screenHeight = $window.height();
362
363
+ // Restore popup container's hidden state
364
+ popupContainer.hide();
365
+
366
function focusMenuItem() {
367
var selector = self.list.find( "." + $.mobile.activeBtnClass + " a" );
368
if ( selector.length === 0 ) {
0 commit comments