summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-09-03 17:25:13 -0700
committerGrace Kloba <klobag@google.com>2009-09-04 10:34:14 -0700
commite5b6d02f34af2cd81615653b00c96a421d5ea819 (patch)
tree9992652f2d5f0eddd3d2cbb301d9f0e256a6a1d4 /core/java
parent445f43081e207ee704a5152a5333054d7b4e13a4 (diff)
Translate the content dimension to the view space before setting them to the view.
Fix http://b/issue?id=2027254
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/webkit/WebView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index cbf9fd5ecbfd..d0e66ee71082 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -4935,8 +4935,8 @@ public class WebView extends AbsoluteLayout
int measuredWidth = widthSize;
// Grab the content size from WebViewCore.
- int contentHeight = mContentHeight;
- int contentWidth = mContentWidth;
+ int contentHeight = Math.round(mContentHeight * mActualScale);
+ int contentWidth = Math.round(mContentWidth * mActualScale);
// Log.d(LOGTAG, "------- measure " + heightMode);