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

Commit 0ed5aeb

Browse files
Transitions: putting back the code back that was accidently removed by commit 8e570e3.
1 parent dcb2f22 commit 0ed5aeb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

js/jquery.mobile.transition.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ var createHandler = function( sequential ){
7474

7575
startIn = function(){
7676

77-
$to.addClass( $.mobile.activePageClass );
77+
//prevent flickering in phonegap container
78+
$to.css("z-index", -10);
79+
80+
$to.addClass( $.mobile.activePageClass + toPreClass );
7881

7982
// Send focus to page as it is now display: block
8083
$.mobile.focusPage( $to );
@@ -83,12 +86,17 @@ var createHandler = function( sequential ){
8386
$to.height( screenHeight + toScroll );
8487

8588
scrollPage();
89+
90+
//restores visibility of the new page
91+
$to.css("z-index", "");
8692

8793
if( !none ){
8894
$to.animationComplete( doneIn );
8995
}
9096

91-
$to.addClass( name + " in" + reverseClass );
97+
$to
98+
.removeClass( toPreClass )
99+
.addClass( name + " in" + reverseClass );
92100

93101
if( none ){
94102
doneIn();

0 commit comments

Comments
 (0)