We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7137c90 commit f09ac7cCopy full SHA for f09ac7c
ui/selectmenu.js
@@ -43,7 +43,7 @@ return $.widget( "ui.selectmenu", {
43
position: {
44
my: "left top",
45
at: "left bottom",
46
- collision: "none"
+ collision: "flip"
47
},
48
width: null,
49
@@ -617,6 +617,15 @@ return $.widget( "ui.selectmenu", {
617
// so we add 1px to avoid the wrapping
618
this.menu.width( "" ).outerWidth() + 1
619
) );
620
+
621
+ // Reset the height of the menu and calculate the max height
622
+ this.menu.css( "height", "auto" );
623
+ var menuHeight = this.menu.height();
624
+ var maxMenuHeight = Math.round( $( window ).height() / 3 );
625
626
+ if ( maxMenuHeight < menuHeight ) {
627
+ this.menu.height( maxMenuHeight );
628
+ }
629
630
631
_getCreateOptions: function() {
0 commit comments