Permalink
Browse files

Transitions: putting back the code back that was accidently removed b…

…y commit 8e570e3.
  • Loading branch information...
1 parent dcb2f22 commit 0ed5aeb62bbc0551a0797f109ca5e2a2ea855cf0 @jaspermdegroot jaspermdegroot committed Jul 19, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 js/jquery.mobile.transition.js
@@ -74,7 +74,10 @@ var createHandler = function( sequential ){
startIn = function(){
- $to.addClass( $.mobile.activePageClass );
+ //prevent flickering in phonegap container
+ $to.css("z-index", -10);
+
+ $to.addClass( $.mobile.activePageClass + toPreClass );
// Send focus to page as it is now display: block
$.mobile.focusPage( $to );
@@ -83,12 +86,17 @@ var createHandler = function( sequential ){
$to.height( screenHeight + toScroll );
scrollPage();
+
+ //restores visibility of the new page
+ $to.css("z-index", "");
if( !none ){
$to.animationComplete( doneIn );
}
- $to.addClass( name + " in" + reverseClass );
+ $to
+ .removeClass( toPreClass )
+ .addClass( name + " in" + reverseClass );
if( none ){
doneIn();

0 comments on commit 0ed5aeb

Please sign in to comment.