am 3c385116: am b82665e7: don\'t allow min scale to go to infinity

Merge commit '3c385116e98e6812813049206cb85417f1bccb21'

* commit '3c385116e98e6812813049206cb85417f1bccb21':
  don't allow min scale to go to infinity
This commit is contained in:
Cary Clark
2009-09-25 08:50:44 -07:00
committed by Android Git Automerger

View File

@@ -4868,7 +4868,8 @@ public class WebView extends AbsoluteLayout
mLastScale = restoreState.mTextWrapScale;
if (restoreState.mMinScale == 0) {
if (restoreState.mMobileSite) {
if (draw.mMinPrefWidth > draw.mViewPoint.x) {
if (draw.mMinPrefWidth >
Math.max(0, draw.mViewPoint.x)) {
mMinZoomScale = (float) viewWidth
/ draw.mMinPrefWidth;
mMinZoomScaleFixed = false;