summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-09-14 14:53:24 -0400
committerCary Clark <cary@android.com>2009-09-14 15:21:14 -0400
commit298d32e1934cddf6b93e6a4588ab05630cd39ec7 (patch)
treee3d356776ad3312e0421d3894000932b57e098bf
parent7cec54302d421dd8c45ea25456b9677a7aa3d8d3 (diff)
downloadframeworks_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.java2
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) {