Skip to content

Commit d83440e

Browse files
committed
Fix for #546
Courtesy of @wallenium
1 parent 7140074 commit d83440e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.multiselect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@
445445
// set menu width
446446
_setMenuWidth: function() {
447447
var m = this.menu;
448-
m.outerWidth(this.options.menuWidth || this.button.outerWidth());
448+
var width = (this.button.outerWidth() <= 0) ? this.options.minWidth : this.button.outerWidth();
449+
m.outerWidth(this.options.menuWidth || width);
449450
},
450451

451452
// move up or down within the menu

0 commit comments

Comments
 (0)