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:
@@ -4935,8 +4935,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
int measuredWidth = widthSize;
|
int measuredWidth = widthSize;
|
||||||
|
|
||||||
// Grab the content size from WebViewCore.
|
// Grab the content size from WebViewCore.
|
||||||
int contentHeight = mContentHeight;
|
int contentHeight = Math.round(mContentHeight * mActualScale);
|
||||||
int contentWidth = mContentWidth;
|
int contentWidth = Math.round(mContentWidth * mActualScale);
|
||||||
|
|
||||||
// Log.d(LOGTAG, "------- measure " + heightMode);
|
// Log.d(LOGTAG, "------- measure " + heightMode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user