diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 5cbc5b837e2..a1d80799c06 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -913,8 +913,8 @@ nsWindow::OnGlobalAndroidEvent(AndroidGeckoEvent *ae) nsTArray 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) {