Skip to content

Commit 5c709ba

Browse files
committed
improve offscreen element positioning. fixes select2#1217. fixes select2#1218. fixes select2#1074
1 parent 8008bfa commit 5c709ba

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

select2.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,13 +616,14 @@ disabled look for disabled choices in the results dropdown
616616
.select2-offscreen {
617617
border: 0;
618618
clip: rect(0 0 0 0);
619-
height: 1px;
620-
margin: -1px;
619+
height: 0;
620+
margin: 0;
621621
overflow: hidden;
622622
padding: 0;
623623
position: absolute;
624-
width: 1px;
625-
left: 0;
624+
width: 0;
625+
display:block;
626+
left: -10000px;
626627
}
627628

628629
.select2-display-none {

0 commit comments

Comments
 (0)