From 01c77fa9e1006028c6d6182504687ad7e875cb82 Mon Sep 17 00:00:00 2001 From: Mat Marquis Date: Wed, 9 Nov 2011 18:25:06 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20#2588=20=E2=80=94=20When=20Windows=20Ph?= =?UTF-8?q?one=207.5=20(Mango)=20tries=20to=20calculate=20a=20numeric=20op?= =?UTF-8?q?acity=20for=20a=20select=E2=80=94including=20=E2=80=9Cinherit?= =?UTF-8?q?=E2=80=9D=E2=80=94without=20explicitly=20specifying=20an=20opac?= =?UTF-8?q?ity=20on=20the=20parent=20to=20give=20it=20context,=20a=20bug?= =?UTF-8?q?=20appears=20where=20clicking=20elsewhere=20on=20the=20page=20a?= =?UTF-8?q?fter=20opening=20the=20select=20will=20open=20the=20select=20ag?= =?UTF-8?q?ain.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/structure/jquery.mobile.forms.select.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/css/structure/jquery.mobile.forms.select.css b/css/structure/jquery.mobile.forms.select.css index 67580449..b77e396e 100644 --- a/css/structure/jquery.mobile.forms.select.css +++ b/css/structure/jquery.mobile.forms.select.css @@ -6,7 +6,13 @@ .ui-select { display: block; position: relative; } .ui-select select { position: absolute; left: -9999px; top: -9999px; } .ui-select .ui-btn { overflow: hidden; } + + +.ui-select .ui-btn { opacity: 1; } +/* Fixes #2588 — When Windows Phone 7.5 (Mango) tries to calculate a numeric opacity for a select—including “inherit”—without explicitly specifying an opacity on the parent to give it context, a bug appears where clicking elsewhere on the page after opening the select will open the select again. */ .ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; min-height: 1.5em; min-height: 100%; height: 3em; max-height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); z-index: 2; } + + @-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }} .ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }