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
This commit is contained in:
Grace Kloba
2009-11-10 15:34:34 -08:00
parent d7439f4bdb
commit bf5b632abb

View File

@@ -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) {