Use max of content width and initial preferred width as the viewport.

issue: 3003933
Change-Id: I4a901219674b575e8228d44381efbaa159912465
This commit is contained in:
Shimeng (Simon) Wang
2010-09-20 18:12:30 -07:00
parent 3d519e9ad2
commit 77fdaaa3af

View File

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