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

Commit 6420877c authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Take into account the visible title height when scrolling."

parents b37d8a48 b7f17d47
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;