am decbc3db: am 840b856d: Merge change 22452 into eclair

Merge commit 'decbc3dbc4d4d3c368319ae0784307b5182bd2fe'

* commit 'decbc3dbc4d4d3c368319ae0784307b5182bd2fe':
  don't center zoom on size change if zoom is in progress
This commit is contained in:
Cary Clark
2009-08-24 11:52:28 -07:00
committed by Android Git Automerger

View File

@@ -3674,8 +3674,10 @@ public class WebView extends AbsoluteLayout
protected void onSizeChanged(int w, int h, int ow, int oh) {
super.onSizeChanged(w, h, ow, oh);
// Center zooming to the center of the screen.
mZoomCenterX = getViewWidth() * .5f;
mZoomCenterY = getViewHeight() * .5f;
if (mZoomScale == 0) { // unless we're already zooming
mZoomCenterX = getViewWidth() * .5f;
mZoomCenterY = getViewHeight() * .5f;
}
// update mMinZoomScale if the minimum zoom scale is not fixed
if (!mMinZoomScaleFixed) {