From bf5b632abbc2f4b96323ff428be585fd2a3d381c Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Tue, 10 Nov 2009 15:34:34 -0800 Subject: [PATCH] Use getViewHeightWithTitle() to honor the scrollbar setting when computing the maxScrollY for fling. This is honored in the regular scroll in computeVerticalScrollExtent(). Fix http://b/issue?id=2251694 --- core/java/android/webkit/WebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 142774ff035ab..a8d9f1d5275c4 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4297,7 +4297,7 @@ public class WebView extends AbsoluteLayout private int computeMaxScrollY() { int maxContentH = computeVerticalScrollRange() + getTitleHeight(); - return Math.max(maxContentH - getHeight(), getTitleHeight()); + return Math.max(maxContentH - getViewHeightWithTitle(), getTitleHeight()); } public void flingScroll(int vx, int vy) {