Skip to content

Commit

Permalink
clip results instead of moving them (#2727)
Browse files Browse the repository at this point in the history
* clip results instead of moving them

fixes #1413
fixes #1410
fixes #1686
fixes #2402
fixes #2445
fixes #2185

* no more need for rtl fix in demo
  • Loading branch information
koenpunt authored Oct 21, 2016
1 parent dacfa20 commit 23a3ee6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
4 changes: 0 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<link rel="stylesheet" href="docsupport/style.css">
<link rel="stylesheet" href="docsupport/prism.css">
<link rel="stylesheet" href="chosen.css">
<style type="text/css" media="all">
/* fix rtl for demo */
.chosen-rtl .chosen-drop { left: -9000px; }
</style>
</head>
<body>
<form>
Expand Down
4 changes: 0 additions & 4 deletions public/index.proto.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<link rel="stylesheet" href="docsupport/style.css">
<link rel="stylesheet" href="docsupport/prism.css">
<link rel="stylesheet" href="chosen.css">
<style type="text/css" media="all">
/* fix rtl for demo */
.chosen-rtl .chosen-drop { left: -9000px; }
</style>
</head>
<body>
<div id="container">
Expand Down
10 changes: 3 additions & 7 deletions sass/chosen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ $chosen-sprite-retina: url('[email protected]') !default;
.chosen-drop {
position: absolute;
top: 100%;
left: -9999px;
z-index: 1010;
width: 100%;
border: 1px solid #aaa;
border-top: 0;
background: #fff;
box-shadow: 0 4px 5px rgba(#000,.15);
clip: rect(0,0,0,0);
}
&.chosen-with-drop .chosen-drop {
left: 0;
clip: auto;
}
a{
cursor: pointer;
Expand Down Expand Up @@ -136,7 +136,7 @@ $chosen-sprite-retina: url('[email protected]') !default;
}
&.chosen-container-single-nosearch .chosen-search {
position: absolute;
left: -9999px;
clip: rect(0,0,0,0);
}
}
/* @end */
Expand Down Expand Up @@ -373,10 +373,6 @@ $chosen-sprite-retina: url('[email protected]') !default;
}
}
}
&.chosen-container-single-nosearch .chosen-search,
.chosen-drop {
left: 9999px;
}
&.chosen-container-single .chosen-results {
margin: 0 0 4px 4px;
padding: 0 4px 0 0;
Expand Down

0 comments on commit 23a3ee6

Please sign in to comment.