소스 검색

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

Igor Vaynberg 12 년 전
부모
커밋
5c709bac15
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  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 {