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

Commit

Permalink
Page: Use visibility:hidden instead of display:none to hide page
Browse files Browse the repository at this point in the history
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 gh-8241
Fixes gh-8137
  • Loading branch information
arschmitz committed Jul 30, 2015
1 parent b5d6ec3 commit 40a33cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css/structure/jquery.mobile.core.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ div.ui-mobile-viewport {
width: 100%;
min-height: 100%;
position: absolute;
display: none;
visibility: hidden;
border: 0;
}
/* On ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
.ui-page {
outline: none;
}
.ui-mobile .ui-page-active {
display: block;
visibility: visible;
overflow: visible;
overflow-x: hidden;
}
Expand Down

0 comments on commit 40a33cf

Please sign in to comment.