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
This commit is contained in:
Cary Clark
2009-09-14 14:53:24 -04:00
parent 7cec54302d
commit 298d32e193

View File

@@ -4570,7 +4570,7 @@ public class WebView extends AbsoluteLayout
private int computeMaxScrollY() { private int computeMaxScrollY() {
int maxContentH = computeVerticalScrollRange() + getTitleHeight(); int maxContentH = computeVerticalScrollRange() + getTitleHeight();
return Math.max(maxContentH - getHeight(), 0); return Math.max(maxContentH - getHeight(), getTitleHeight());
} }
public void flingScroll(int vx, int vy) { public void flingScroll(int vx, int vy) {