Browse Source

Merge pull request #632 from crueber/patch-1

Update select2.js
Igor Vaynberg 12 years ago
parent
commit
c135db876e
1 changed files with 5 additions and 0 deletions
  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);
         },