Hack the real window dimensions
authorBenoit Girard <b56girard@gmail.com>
Thu, 02 Feb 2012 18:03:55 -0500
changeset 92374 52e24cbce2dad1f2d8eb6734d532308597861478
parent 92373 dc390a2ae356015b9d14a900ca960652bf384795
child 92375 78631ebfbd86baf31a2501c4e042eb1fbd46a1c1
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone12.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
Hack the real window dimensions
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -908,18 +908,18 @@ nsWindow::OnGlobalAndroidEvent(AndroidGe
             for (PRUint32 i = 0; i < win->mChildren.Length(); i++) {
                 win->mChildren[i]->mBounds.width = 0;
                 win->mChildren[i]->mBounds.height = 0;
             }
         case AndroidGeckoEvent::SIZE_CHANGED: {
             nsTArray<nsIntPoint> points = ae->Points();
             NS_ASSERTION(points.Length() != 3, "Size changed does not have enough coordinates");
 
-            int nw = points[0].x;
-            int nh = points[0].y;
+            int nw = points[1].x;
+            int nh = points[1].y;
 
             if (ae->Type() == AndroidGeckoEvent::FORCED_RESIZE || nw != gAndroidBounds.width ||
                 nh != gAndroidBounds.height) {
 
                 gAndroidBounds.width = nw;
                 gAndroidBounds.height = nh;
 
                 // tell all the windows about the new size