Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7940e847 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix the initial reflow width when switch between basic pages."

parents e07f6eeb 0a4a70da
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);