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

Commit 6a0b5ca1 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Fix bug: use content height instead of view height.

issue: 3396895
Change-Id: I3012fa2c48d3e215d5b877ac525fdba89c0f9251
parent 5a50351c
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) {