Skip to content

Commit 8cbf649

Browse files
committed
Page: Use visibility:hidden instead of display:none to hide page
Avoiding display: none means we can calculate heights before transitions This means less visual update after the end of the transition and removes the need for binding to pageshow for page layout updates this also has a small performance benefit since it avoids reflows Closes jquery-archivegh-8241 Fixes jquery-archivegh-8137
1 parent 47c6797 commit 8cbf649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css/structure/jquery.mobile.core.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ div.ui-mobile-viewport {
4444
width: 100%;
4545
min-height: 100%;
4646
position: absolute;
47-
display: none;
47+
visibility: hidden;
4848
border: 0;
4949
}
5050
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
5151
.ui-page {
5252
outline: none;
5353
}
5454
.ui-mobile .ui-page-active {
55-
display: block;
55+
visibility: visible;
5656
overflow: visible;
5757
overflow-x: hidden;
5858
}

0 commit comments

Comments
 (0)