]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: problem with height and maxHeight, generally improved height handling
authorFelix Nagel <info@felixnagel.com>
Thu, 16 Jun 2011 21:58:38 +0000 (23:58 +0200)
committerFelix Nagel <info@felixnagel.com>
Thu, 16 Jun 2011 21:58:38 +0000 (23:58 +0200)
removed: unneeded code

ui/jquery.ui.selectmenu.js

index 7e3ba1689afffec9b910670b1e915c204e9101c3..0d011b9d2d3cab21ca03a37b3b7440e9f6f3cc04 100644 (file)
@@ -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)');