소스 검색

fix bug with determing the width. fixes #242

Igor Vaynberg 13 년 전
부모
커밋
0d5be21e09
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      select2.js

+ 2 - 0
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;
                }