Permalink
Browse files

Merge pull request #4462 from Diveboard/master

  • Loading branch information...
1 parent f164821 commit 470706892449902c6236daef472377d709440185 @jaspermdegroot jaspermdegroot committed Jun 21, 2012
Showing with 12 additions and 6 deletions.
  1. +12 −6 js/jquery.mobile.transition.js
@@ -71,11 +71,14 @@ var createHandler = function( sequential ){
startIn();
},
-
- startIn = function(){
-
- $to.addClass( $.mobile.activePageClass + toPreClass );
-
+
+ startIn = function(){
+
+ //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 );
@@ -84,6 +87,9 @@ var createHandler = function( sequential ){
scrollPage();
+ //restores visibility of the new page
+ $to.css("z-index", "");
+
if( !none ){
$to.animationComplete( doneIn );
}
@@ -154,4 +160,4 @@ $.mobile.transitionFallbacks = {};
})( jQuery, this );
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});
-//>>excludeEnd("jqmBuildExclude");
+//>>excludeEnd("jqmBuildExclude");

0 comments on commit 4707068

Please sign in to comment.