am b82665e7: don\'t allow min scale to go to infinity
Merge commit 'b82665e78f3a4f08e7b620b85246b7925097386b' into eclair-plus-aosp * commit 'b82665e78f3a4f08e7b620b85246b7925097386b': don't allow min scale to go to infinity
This commit is contained in:
@@ -4868,7 +4868,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
mLastScale = restoreState.mTextWrapScale;
|
mLastScale = restoreState.mTextWrapScale;
|
||||||
if (restoreState.mMinScale == 0) {
|
if (restoreState.mMinScale == 0) {
|
||||||
if (restoreState.mMobileSite) {
|
if (restoreState.mMobileSite) {
|
||||||
if (draw.mMinPrefWidth > draw.mViewPoint.x) {
|
if (draw.mMinPrefWidth >
|
||||||
|
Math.max(0, draw.mViewPoint.x)) {
|
||||||
mMinZoomScale = (float) viewWidth
|
mMinZoomScale = (float) viewWidth
|
||||||
/ draw.mMinPrefWidth;
|
/ draw.mMinPrefWidth;
|
||||||
mMinZoomScaleFixed = false;
|
mMinZoomScaleFixed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user