Skip to content

Commit 8089317

Browse files
committed
Additional work on jquery-archive#2066 — This change only applies overflow-x: hidden to body/div elements that receive the .ui-mobile-viewport class, as we can safely predict that style won’t interfere with native select funcitonality when attached to those elements. This will address the vast majority of use cases, and prevent this style from causing unpredictable Android issues in the event that the page is wrapped in an unusual element (a form, table cell, marquee tag, etc.).
1 parent fea5bfd commit 8089317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
.ui-mobile a img, .ui-mobile fieldset { border: 0; }
1111

1212
/* responsive page widths */
13-
.ui-mobile-viewport { margin: 0; overflow-x: hidden; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
13+
.ui-mobile-viewport { margin: 0; overflow-x: visible; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
1414
/* Issue #2066 */
15-
form.ui-mobile-viewport { overflow-x: visible; }
15+
body.ui-mobile-viewport,
16+
div.ui-mobile-viewport { overflow-x: hidden; }
1617

1718
/* "page" containers - full-screen views, one should always be in view post-pageload */
1819
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; }

0 commit comments

Comments
 (0)