Use max of content width and initial preferred width as the viewport.
issue: 3003933 Change-Id: I4a901219674b575e8228d44381efbaa159912465
This commit is contained in:
@@ -1831,7 +1831,7 @@ final class WebViewCore {
|
||||
mSettings.getUseWideViewPort()) {
|
||||
// Use website's initial preferred width as the fixed viewport width.
|
||||
mViewportWidth = Math.min(mSettings.getMaxFixedViewportWidth(),
|
||||
draw.mMinPrefWidth);
|
||||
Math.max(draw.mWidthHeight.x, draw.mMinPrefWidth));
|
||||
draw.mViewState.mViewportWidth = mViewportWidth;
|
||||
}
|
||||
mInitialViewState = null;
|
||||
|
||||
Reference in New Issue
Block a user