From 0a4a70daba81351e4d12ca4faae6d135c1f0d2e2 Mon Sep 17 00:00:00 2001 From: "Shimeng (Simon) Wang" Date: Wed, 30 Jun 2010 11:48:05 -0700 Subject: Fix the initial reflow width when switch between basic pages. issue: 2778976 Change-Id: Ib77c91628792258db8197459656b8f42bf787c9c --- core/java/android/webkit/WebView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 21e7b63..a40e90e 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -6052,6 +6052,8 @@ public class WebView extends AbsoluteLayout WebViewCore.ViewState viewState = draw.mViewState; boolean isPictureAfterFirstLayout = viewState != null; if (isPictureAfterFirstLayout) { + // Reset the last sent data here since dealing with new page. + mLastWidthSent = 0; mZoomManager.onFirstLayout(draw); if (!mDrawHistory) { setContentScrollTo(viewState.mScrollX, viewState.mScrollY); -- cgit v1.1