Bug 704738 - Snap to edges on device rotation [r=Cwiiis]
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 05 Dec 2011 13:23:32 -0500
changeset 83686 b061277d568819d3bdfbd55249deed5897134ff1
parent 83685 d29a6f00f79b6ff661f7aec67e38facfe5bc8ae7
child 83687 1dd170eaf5ee251b030dbab3d84b9c40d42f336f
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCwiiis
bugs704738
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 704738 - Snap to edges on device rotation [r=Cwiiis]
mobile/android/base/gfx/LayerController.java
--- a/mobile/android/base/gfx/LayerController.java
+++ b/mobile/android/base/gfx/LayerController.java
@@ -164,17 +164,17 @@ public class LayerController {
     public void setViewportSize(FloatSize size) {
         mViewportMetrics.setSize(size);
         setForceRedraw();
 
         if (mLayerClient != null)
             mLayerClient.viewportSizeChanged();
 
         notifyLayerClientOfGeometryChange();
-        mPanZoomController.geometryChanged(false);
+        mPanZoomController.geometryChanged(true);
         mView.requestRender();
     }
 
     public void scrollTo(PointF point) {
         mViewportMetrics.setOrigin(point);
         notifyLayerClientOfGeometryChange();
         mPanZoomController.geometryChanged(false);
         GeckoApp.mAppContext.repositionPluginViews(false);