From 3d8f6f0a39025e1ff528b98d508519e99c14e0e8 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 16 Jun 2011 23:58:38 +0200 Subject: [PATCH] fixed: problem with height and maxHeight, generally improved height handling removed: unneeded code --- ui/jquery.ui.selectmenu.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 7e3ba1689..0d011b9d2 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -375,19 +375,7 @@ $.widget("ui.selectmenu", { } else { var winH = $( window ).height() / 3; if ( winH < listH ) this.list.height( winH ); - } - - // if ( o.maxHeight ) { - // if (o.maxHeight < listH) { - // this.list.height( o.maxHeight ); - // } - // } else { - // var winH = $( window ).height() / 3; - // if ( winH < listH ) { - // this.list.height( winH ); - // console.log("set height (winH): " + winH); - // } - // } + } // save reference to actionable li's (not group label li's) this._optionLis = this.list.find('li:not(.' + self.widgetBaseClass + '-group)'); -- 2.39.5