From b307c00c8ebc5df69e7449a1141c3df27075f2ef Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 10 Oct 2011 21:59:43 +0200 Subject: [PATCH] fixed: resize now forces a close the list, follow-up #147 --- ui/jquery.ui.selectmenu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index d61d75f96..367a37fae 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -254,9 +254,7 @@ $.widget("ui.selectmenu", { .bind( 'mousedown.selectmenu mouseup.selectmenu', function() { return false; }); // needed when window is resized - // TODO seems to be useless, but causes errors (fnagel 01.08.11) - // see: https://github.com/fnagel/jquery-ui/issues/147 - // $(window).bind( "resize.selectmenu", $.proxy( self._refreshPosition, this ) ); + $(window).bind( "resize.selectmenu", $.proxy( self.close, this ) ); }, _init: function() { -- 2.39.5