this seems to be a little better on repaints.

This commit is contained in:
scottjehl 2012-01-25 21:12:23 +07:00
parent 99db3d039f
commit 9381ae8f09

View file

@ -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( screenHeight + toScroll );
$to.height( $to.height() );
$.mobile.silentScroll( toScroll );
@ -67,7 +67,7 @@ function outInTransitionHandler( name, reverse, $to, $from ) {
if ( $from && !none ) {
$from
.animationComplete( doneOut )
.height( screenHeight + $(window ).scrollTop() )
.height( $from.height() )
.addClass( name + " out" + reverseClass );
}
else {