瀏覽代碼

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 年之前
父節點
當前提交
eac267b11f
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      select2.css

+ 2 - 0
select2.css

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