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

Commit 17b14bd3 authored by Grace Kloba's avatar Grace Kloba
Browse files

DO NOT MERGE

Make sure the mZoomOverviewWidth is as least as
wide as the current (adjusted) view width.

This should fix the weird state Bart got in with
m.wikipedia.org.
parent 5a0bf1f0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5194,8 +5194,9 @@ public class WebView extends AbsoluteLayout
                        mPictureListener.onNewPicture(WebView.this, capturePicture());
                    }
                    if (useWideViewport) {
                        mZoomOverviewWidth = Math.max(draw.mMinPrefWidth,
                                draw.mViewPoint.x);
                        mZoomOverviewWidth = Math.max(
                                (int) (viewWidth / mDefaultScale), Math.max(
                                        draw.mMinPrefWidth, draw.mViewPoint.x));
                    }
                    if (!mMinZoomScaleFixed) {
                        mMinZoomScale = (float) viewWidth / mZoomOverviewWidth;