From df344375a93f3bfe0360f5436c0866f44b7fb6cc Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 15 Sep 2009 12:47:39 -0400 Subject: [PATCH] compute Y scroll max by scaling only, ignoring title bar height without this, the max scroll may be a single pixel --- core/java/android/webkit/WebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index be3da121fb1f9..47a97b89063b0 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -5772,7 +5772,7 @@ public class WebView extends AbsoluteLayout // FIXME the divisor should be retrieved from somewhere // the closest thing today is hard-coded into ScrollView.java // (from ScrollView.java, line 363) int maxJump = height/2; - return viewToContentY(height); + return Math.round(height * mInvActualScale); } /**