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

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

Take into account the visible title height when scrolling.

Bug: 2425057
	modified:   core/java/android/webkit/WebView.java
parent b1043404
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6172,6 +6172,9 @@ public class WebView extends AbsoluteLayout
                    // mContentHeight may not be updated yet
                    y = Math.max(0,
                            (Math.min(maxHeight, y + viewHeight) - viewHeight));
                    // We need to take into account the visible title height
                    // when scrolling since y is an absolute view position.
                    y = Math.max(0, y - getVisibleTitleHeight());
                    scrollTo(x, y);
                    }
                    break;