Translate the content dimension to the view space before setting them to the view.

Fix http://b/issue?id=2027254
This commit is contained in:
Grace Kloba
2009-09-03 17:25:13 -07:00
parent 445f43081e
commit e5b6d02f34

View File

@@ -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);