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

Commit 8430c1a7 authored by Grace Kloba's avatar Grace Kloba Committed by Android (Google) Code Review
Browse files

Merge "When titlebar's visible height changed, it means the WebKit viewsize need to be updated."

parents d95c8f2d 4addf9b5
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) {