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

Commit 4addf9b5 authored by Grace Kloba's avatar Grace Kloba
Browse files

When titlebar's visible height changed, it means the

WebKit viewsize need to be updated.

Fix http://b/issue?id=2470621
parent 43242d02
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4081,8 +4081,13 @@ public class WebView extends AbsoluteLayout
    protected void onScrollChanged(int l, int t, int oldl, int oldt) {
        super.onScrollChanged(l, t, oldl, oldt);
        sendOurVisibleRect();
        // update WebKit if visible title bar height changed. The logic is same
        // as getVisibleTitleHeight.
        int titleHeight = getTitleHeight();
        if (Math.max(titleHeight - t, 0) != Math.max(titleHeight - oldt, 0)) {
            sendViewSizeZoom();
        }
    }


    @Override
    public boolean dispatchKeyEvent(KeyEvent event) {