From 4523bb241b498d496b1929beda22caeac22165a8 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Fri, 27 Jan 2012 20:39:07 +0700 Subject: [PATCH] Undoing one of my earilier changes to remove a jump-to-top that commonly happened at the start of transitions, --- js/jquery.mobile.transition.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.transition.js b/js/jquery.mobile.transition.js index 9cf5fff6..10322bbc 100644 --- a/js/jquery.mobile.transition.js +++ b/js/jquery.mobile.transition.js @@ -40,7 +40,7 @@ function outInTransitionHandler( name, reverse, $to, $from ) { $.mobile.focusPage( $to ); // Jump to top or prev scroll, sometimes on iOS the page has not rendered yet. - $to.height( $to.height() ); + $to.height( screenHeight + toScroll ); $.mobile.silentScroll( toScroll ); @@ -67,7 +67,7 @@ function outInTransitionHandler( name, reverse, $to, $from ) { if ( $from && !none ) { $from .animationComplete( doneOut ) - .height( $from.height() ) + .height( screenHeight + $(window ).scrollTop() ) .addClass( name + " out" + reverseClass ); } else {