Skip to content

Commit 3d8f6f0

Browse files
committed
fixed: problem with height and maxHeight, generally improved height handling
removed: unneeded code
1 parent 519b264 commit 3d8f6f0

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -375,19 +375,7 @@ $.widget("ui.selectmenu", {
375375
} else {
376376
var winH = $( window ).height() / 3;
377377
if ( winH < listH ) this.list.height( winH );
378-
}
379-
380-
// if ( o.maxHeight ) {
381-
// if (o.maxHeight < listH) {
382-
// this.list.height( o.maxHeight );
383-
// }
384-
// } else {
385-
// var winH = $( window ).height() / 3;
386-
// if ( winH < listH ) {
387-
// this.list.height( winH );
388-
// console.log("set height (winH): " + winH);
389-
// }
390-
// }
378+
}
391379

392380
// save reference to actionable li's (not group label li's)
393381
this._optionLis = this.list.find('li:not(.' + self.widgetBaseClass + '-group)');

0 commit comments

Comments
 (0)