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

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

Merge change 22452 into eclair

* changes:
  don't center zoom on size change if zoom is in progress
parents d507ff21 a91874d1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3674,8 +3674,10 @@ public class WebView extends AbsoluteLayout
    protected void onSizeChanged(int w, int h, int ow, int oh) {
        super.onSizeChanged(w, h, ow, oh);
        // Center zooming to the center of the screen.
        if (mZoomScale == 0) { // unless we're already zooming
            mZoomCenterX = getViewWidth() * .5f;
            mZoomCenterY = getViewHeight() * .5f;
        }

        // update mMinZoomScale if the minimum zoom scale is not fixed
        if (!mMinZoomScaleFixed) {