소스 검색

Merge pull request #632 from crueber/patch-1

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

+ 5 - 0
select2.js

@@ -2210,6 +2210,11 @@ the specific language governing permissions and limitations under the Apache Lic
             if (searchWidth < 40) {
                 searchWidth = maxWidth - sideBorderPadding;
             }
+            
+            if (searchWidth <= 0) {
+              searchWidth = minimumWidth
+            }
+            
             this.search.width(searchWidth);
         },