From 9b2a0b627a26a0ade128af602a7f4ba3e8181aa1 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sat, 15 Oct 2016 18:16:42 +0200 Subject: [PATCH 1/4] clip results instead of moving them fixes #1413 fixes #1410 --- sass/chosen.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sass/chosen.scss b/sass/chosen.scss index 9131cb6b2a3..750bdd0f909 100644 --- a/sass/chosen.scss +++ b/sass/chosen.scss @@ -14,16 +14,16 @@ $chosen-sprite-retina: url('chosen-sprite@2x.png') !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; From 9dd06dbf28941da92aa26c4a0f757a52612e0613 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sat, 15 Oct 2016 21:18:21 +0200 Subject: [PATCH 2/4] clip also applies to nosearch instance --- sass/chosen.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/chosen.scss b/sass/chosen.scss index 750bdd0f909..ec7aa994083 100644 --- a/sass/chosen.scss +++ b/sass/chosen.scss @@ -136,7 +136,7 @@ $chosen-sprite-retina: url('chosen-sprite@2x.png') !default; } &.chosen-container-single-nosearch .chosen-search { position: absolute; - left: -9999px; + clip: rect(0,0,0,0); } } /* @end */ From 7fde41cdf556acf9b62c4ca98adbc669c9a6bd13 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sat, 15 Oct 2016 21:18:38 +0200 Subject: [PATCH 3/4] position for rtl is no different that the original --- sass/chosen.scss | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sass/chosen.scss b/sass/chosen.scss index ec7aa994083..4e1f3682089 100644 --- a/sass/chosen.scss +++ b/sass/chosen.scss @@ -373,10 +373,6 @@ $chosen-sprite-retina: url('chosen-sprite@2x.png') !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; From c39201a7dab70610e5c7b9d7c31c6741277d1f76 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sat, 15 Oct 2016 21:21:42 +0200 Subject: [PATCH 4/4] no more need for rtl fix in demo --- public/index.html | 4 ---- public/index.proto.html | 4 ---- 2 files changed, 8 deletions(-) diff --git a/public/index.html b/public/index.html index a77e80827ec..ae86863942b 100644 --- a/public/index.html +++ b/public/index.html @@ -6,10 +6,6 @@ -
diff --git a/public/index.proto.html b/public/index.proto.html index 931613958a4..07bbe49db4b 100644 --- a/public/index.proto.html +++ b/public/index.proto.html @@ -6,10 +6,6 @@ -