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

Commit e03848eb authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 27154 into eclair

* changes:
  When change from narrow screen to wide screen, we will leave the mMinZoomScale to 1.0
parents 0faa5c6c ba672802
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3587,9 +3587,13 @@ public class WebView extends AbsoluteLayout

        // update mMinZoomScale if the minimum zoom scale is not fixed
        if (!mMinZoomScaleFixed) {
            mMinZoomScale = (float) getViewWidth()
            // when change from narrow screen to wide screen, the new viewWidth
            // can be wider than the old content width. We limit the minimum
            // scale to 1.0f. The proper minimum scale will be calculated when
            // the new picture shows up.
            mMinZoomScale = Math.min(1.0f, (float) getViewWidth()
                    / (mDrawHistory ? mHistoryPicture.getWidth()
                            : mZoomOverviewWidth);
                            : mZoomOverviewWidth));
        }

        // we always force, in case our height changed, in which case we still