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

Commit 0a4a70da authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Fix the initial reflow width when switch between basic pages.

issue: 2778976
Change-Id: Ib77c91628792258db8197459656b8f42bf787c9c
parent 3dcfeac8
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);