Bug 783899, notify the view for resize events before the webshellwindow, fixing thunderbird window size when maximized, r=jmathies

This commit is contained in:
Neil Deakin 2012-08-24 08:42:15 -04:00
parent 4b70b5c1ef
commit ad8b5ffc6a

View File

@ -7082,13 +7082,15 @@ bool nsWindow::OnResize(nsIntRect &aWindowRect)
}
#endif
bool result = mWidgetListener ?
mWidgetListener->WindowResized(this, aWindowRect.width, aWindowRect.height) : false;
// If there is an attached view, inform it as well as the normal widget listener.
if (mAttachedWidgetListener) {
mAttachedWidgetListener->WindowResized(this, aWindowRect.width, aWindowRect.height);
return mAttachedWidgetListener->WindowResized(this, aWindowRect.width, aWindowRect.height);
}
return mWidgetListener ?
mWidgetListener->WindowResized(this, aWindowRect.width, aWindowRect.height) : false;
return result;
}
bool nsWindow::OnHotKey(WPARAM wParam, LPARAM lParam)