diff options
author | Cary Clark <cary@android.com> | 2009-09-14 14:53:24 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-09-14 15:21:14 -0400 |
commit | 298d32e1934cddf6b93e6a4588ab05630cd39ec7 (patch) | |
tree | e3d356776ad3312e0421d3894000932b57e098bf | |
parent | 7cec54302d421dd8c45ea25456b9677a7aa3d8d3 (diff) | |
download | frameworks_base-298d32e1934cddf6b93e6a4588ab05630cd39ec7.zip frameworks_base-298d32e1934cddf6b93e6a4588ab05630cd39ec7.tar.gz frameworks_base-298d32e1934cddf6b93e6a4588ab05630cd39ec7.tar.bz2 |
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
-rw-r--r-- | core/java/android/webkit/WebView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index c93df74..b65205c 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) { |