diff options
| -rw-r--r-- | core/java/android/webkit/WebView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 26dab81517ba..88bb9fceb7ae 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2617,8 +2617,8 @@ public class WebView extends AbsoluteLayout newHeight = 0; heightWidthRatio = 0; } - // Actual visible height. - int actualViewHeight = getViewHeight(); + // Actual visible content height. + int actualViewHeight = Math.round(getViewHeight() * mZoomManager.getInvScale()); // Avoid sending another message if the dimensions have not changed. if (newWidth != mLastWidthSent || newHeight != mLastHeightSent || force || actualViewHeight != mLastActualHeightSent) { |