Explorar o código

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

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
5c709bac15
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  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 {