Use computeVerticalScrollRange() to find the bottom

of the page as mContentHeight is not in the view system.

Fix http://b/issue?id=2251909
This commit is contained in:
Grace Kloba
2009-11-10 14:11:33 -08:00
parent c996689109
commit d7439f4bdb

View File

@@ -1525,7 +1525,7 @@ public class WebView extends AbsoluteLayout
}
nativeClearCursor(); // start next trackball movement from page edge
if (bottom) {
return pinScrollTo(mScrollX, mContentHeight, true, 0);
return pinScrollTo(mScrollX, computeVerticalScrollRange(), true, 0);
}
// Page down.
int h = getHeight();