From 241357d41c8299d022ea1fd975c4417a1d56f30a Mon Sep 17 00:00:00 2001 From: Simon Wallmann Date: Tue, 14 Jul 2015 18:47:38 +0200 Subject: [PATCH] fix for issue #546 --- src/jquery.multiselect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jquery.multiselect.js b/src/jquery.multiselect.js index cef6e4e..702ff2c 100644 --- a/src/jquery.multiselect.js +++ b/src/jquery.multiselect.js @@ -438,7 +438,8 @@ // set menu width _setMenuWidth: function() { var m = this.menu; - m.outerWidth(this.button.outerWidth()); + var width = (this.button.outerWidth() <= 0) ? this.options.minWidth : this.button.outerWidth(); + m.outerWidth(width); }, // move up or down within the menu