diff options
| author | 2009-09-15 12:47:39 -0400 | |
|---|---|---|
| committer | 2009-09-15 13:24:32 -0400 | |
| commit | df344375a93f3bfe0360f5436c0866f44b7fb6cc (patch) | |
| tree | f7642de4d91d36369c821a094458fe530f3cee7d | |
| parent | 5adeba4b7f63081257f9d0fb65127bdce0399c79 (diff) | |
compute Y scroll max by scaling only, ignoring title bar height
without this, the max scroll may be a single pixel
| -rw-r--r-- | core/java/android/webkit/WebView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index be3da121fb1f..47a97b89063b 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); } /** |