Skip to content

Commit bb0297b

Browse files
author
Gabriel Schulhof
committed
Revert "Custom select: Must un-hide popup container before calculating height."
This reverts commit 541f963.
1 parent c6ad6ab commit bb0297b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

js/widgets/forms/select.custom.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,12 @@ define( [
355355
_decideFormat: function() {
356356
var self = this,
357357
$window = $.mobile.window,
358-
// Show popup container so that menuHeight will be reported correctly
359-
popupContainer = self.listbox.parent().show(),
360358
selfListParent = self.list.parent(),
361359
menuHeight = selfListParent.outerHeight(),
362360
scrollTop = $window.scrollTop(),
363361
btnOffset = self.button.offset().top,
364362
screenHeight = $window.height();
365363

366-
// Restore popup container's hidden state
367-
popupContainer.hide();
368-
369364
function focusMenuItem() {
370365
var selector = self.list.find( "." + $.mobile.activeBtnClass + " a" );
371366
if ( selector.length === 0 ) {

0 commit comments

Comments
 (0)