Skip to content

Commit a5aba8b

Browse files
SteveTheTechiemlh758
authored andcommitted
Use $.outerWidth() for Native Select Element Width
Native Select element could be initially hidden in the case of a dialog.
1 parent ae1e15d commit a5aba8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
var linkInfo = ( this.linkInfo = $.extend(true, {}, linkDefaults, options.linkInfo || {}) );
151151

152152
// grab select width before hiding it
153-
this._selectWidth = this._getBCRWidth(elSelect);
153+
this._selectWidth = $element.outerWidth();
154154
$element.hide();
155155

156156
// Convert null/falsely option values to empty arrays for fewer problems

0 commit comments

Comments
 (0)