From 298d32e1934cddf6b93e6a4588ab05630cd39ec7 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 14 Sep 2009 14:53:24 -0400 Subject: [PATCH] Set the minimum fling to the title height. Dragging and flinging have different minimums for the max Y value. Allow the fling to have the title height instead of zero for the minimum max Y so the title can always be removed via fling. This fixes http://b/issue?id=2109006 --- 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 c93df742d3c63..b65205cd66a86 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4570,7 +4570,7 @@ public class WebView extends AbsoluteLayout private int computeMaxScrollY() { int maxContentH = computeVerticalScrollRange() + getTitleHeight(); - return Math.max(maxContentH - getHeight(), 0); + return Math.max(maxContentH - getHeight(), getTitleHeight()); } public void flingScroll(int vx, int vy) {