Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 5e95ee0

Browse files
committed
Page: update css for hiding non active page to account for height
Also accounts for nested elements with visibility:visible Closes gh-8241
1 parent cdf5fd0 commit 5e95ee0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ div.ui-mobile-viewport {
4747
visibility: hidden;
4848
border: 0;
4949
}
50+
51+
/* Need to make sure things with visibility:visible inside a pag stay hidden */
52+
.ui-page:not(.ui-page-active) *{
53+
visibility: hidden !important;
54+
}
55+
.ui-page:not(.ui-page-active) {
56+
overflow: hidden;
57+
max-height: 100%;
58+
}
5059
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
5160
.ui-page {
5261
outline: none;

0 commit comments

Comments
 (0)