From 0d5be21e0983fe28ff96acfdc605eeb635a0328e Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 20 Jul 2012 00:56:37 +0300 Subject: [PATCH] fix bug with determing the width. fixes #242 --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index 11fa75d3..73edb024 100755 --- a/select2.js +++ b/select2.js @@ -1138,6 +1138,8 @@ // finally, fallback on the calculated width of the element return (this.opts.element.outerWidth() === 0 ? 'auto' : this.opts.element.outerWidth() + 'px'); } + + return null; } else { return this.opts.width; }