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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user