diff --git a/select2.js b/select2.js index 80ce407b..28578b11 100755 --- a/select2.js +++ b/select2.js @@ -1151,6 +1151,8 @@ } return null; + } else if ($.isFunction(this.opts.width)) { + return this.opts.width(); } else { return this.opts.width; }