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

Commit 619ded23 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Use minPrefWidth instead of viewsize.x.

This is to fix a bug I introduced in one of my last CLs, which is tested
under hw accerlation, and the problem was not there.

issue:3161799
Change-Id: Ic7e7c186d1830c3cbd9359af0e283afbbdfbbac1
parent 7b362e43
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ class ZoomManager {
                    Math.max((int) (viewWidth * mInvDefaultScale),
                            Math.max(drawData.mMinPrefWidth, drawData.mViewSize.x))));
            } else {
                final int contentWidth = Math.max(drawData.mContentSize.x, drawData.mViewSize.x);
                final int contentWidth = Math.max(drawData.mContentSize.x, drawData.mMinPrefWidth);
                setZoomOverviewWidth(Math.min(WebView.sMaxViewportWidth, contentWidth));
            }
        }