瀏覽代碼

Fix z-index on input text box for single selects.

Using the select2 control in a jquery dialog works fine except for you cannot click on the input box when doing a single select select box. The containing div was given a z-index, but not a position attribute, so the z-index was ignored.
gladmon 12 年之前
父節點
當前提交
b96ee3fc88
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      select2.css

+ 3 - 2
select2.css

@@ -165,8 +165,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
 
 .select2-search {
   display: inline-block;
-    white-space: nowrap;
-    z-index: 10000;
+  white-space: nowrap;
+  z-index: 10000;
+  position: relative;
   min-height: 26px;
   width: 100%;
   margin: 0;