DO NOT MERGE

Make sure the mZoomOverviewWidth is as least as
wide as the current (adjusted) view width.

This should fix the weird state Bart got in with
m.wikipedia.org.
This commit is contained in:
Grace Kloba
2010-01-15 16:08:17 -08:00
parent 5a0bf1f03e
commit 17b14bd36a

View File

@@ -5194,8 +5194,9 @@ public class WebView extends AbsoluteLayout
mPictureListener.onNewPicture(WebView.this, capturePicture());
}
if (useWideViewport) {
mZoomOverviewWidth = Math.max(draw.mMinPrefWidth,
draw.mViewPoint.x);
mZoomOverviewWidth = Math.max(
(int) (viewWidth / mDefaultScale), Math.max(
draw.mMinPrefWidth, draw.mViewPoint.x));
}
if (!mMinZoomScaleFixed) {
mMinZoomScale = (float) viewWidth / mZoomOverviewWidth;