Forráskód Böngészése

improve offscreen element positioning. fixes #1217. fixes #1218. fixes #1074

Igor Vaynberg 12 éve
szülő
commit
5c709bac15
1 módosított fájl, 5 hozzáadás és 4 törlés
  1. 5 4
      select2.css

+ 5 - 4
select2.css

@@ -616,13 +616,14 @@ disabled look for disabled choices in the results dropdown
 .select2-offscreen {
     border: 0;
     clip: rect(0 0 0 0);
-    height: 1px;
-    margin: -1px;
+    height: 0;
+    margin: 0;
     overflow: hidden;
     padding: 0;
     position: absolute;
-    width: 1px;
-    left: 0;
+    width: 0;
+    display:block;
+    left: -10000px;
 }
 
 .select2-display-none {