Browse Source

Bugfix: Avoid implosion of empty <option>s

When using select2 on

<select>
  <option value="empty"></option>
  <option>Val 1</option>
  <option>Val 2</option>
</select>

The top option will not have the correct height.
Jens Rantil 12 years ago
parent
commit
eac267b11f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      select2.css

+ 2 - 0
select2.css

@@ -339,6 +339,8 @@ Version: @@ver@@ Timestamp: @@timestamp@@
     margin: 0;
     margin: 0;
     cursor: pointer;
     cursor: pointer;
 
 
+    min-height: 1em;
+
     -webkit-touch-callout: none;
     -webkit-touch-callout: none;
       -webkit-user-select: none;
       -webkit-user-select: none;
        -khtml-user-select: none;
        -khtml-user-select: none;