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

Commit 346f97f8 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Fix the viewport height to view height when title bar is visible.

issue: 3097787
Change-Id: Ie685a94262cecd94f32dbb94991fea76ceb43b94
parent f0a896b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2471,7 +2471,7 @@ public class WebView extends AbsoluteLayout

        int viewWidth = getViewWidth();
        int newWidth = Math.round(viewWidth * mZoomManager.getInvScale());
        int newHeight = Math.round(getViewHeight() * mZoomManager.getInvScale());
        int newHeight = Math.round((getViewHeightWithTitle() - getTitleHeight()) * mZoomManager.getInvScale());
        /*
         * Because the native side may have already done a layout before the
         * View system was able to measure us, we have to send a height of 0 to