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

Commit 357a9335 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix bug: use content height instead of view height."

parents 0592f233 6a0b5ca1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2617,8 +2617,8 @@ public class WebView extends AbsoluteLayout
            newHeight = 0;
            heightWidthRatio = 0;
        }
        // Actual visible height.
        int actualViewHeight = getViewHeight();
        // Actual visible content height.
        int actualViewHeight = Math.round(getViewHeight() * mZoomManager.getInvScale());
        // Avoid sending another message if the dimensions have not changed.
        if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force ||
                actualViewHeight != mLastActualHeightSent) {