From e5b6d02f34af2cd81615653b00c96a421d5ea819 Mon Sep 17 00:00:00 2001 From: Grace Kloba Date: Thu, 3 Sep 2009 17:25:13 -0700 Subject: [PATCH] Translate the content dimension to the view space before setting them to the view. Fix http://b/issue?id=2027254 --- core/java/android/webkit/WebView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index cbf9fd5ecbfd1..d0e66ee71082a 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);