Bug 476705 - touch up patch for window state problem.

This commit is contained in:
Jim Mathies 2009-02-09 15:39:55 -06:00
parent a8b322321a
commit 7d5de50f2a

View File

@ -1773,11 +1773,13 @@ NS_IMETHODIMP nsWindow::SetSizeMode(PRInt32 aMode) {
if (aMode == mSizeMode)
return NS_OK;
#ifdef WINCE
// on windows mobile, dialogs and top level windows are full screen
// This is partly due to the lack of a GetWindowPlacement.
if (mWindowType == eWindowType_dialog || mWindowType == eWindowType_toplevel) {
aMode = nsSizeMode_Maximized;
}
#endif
// save the requested state
rv = nsBaseWidget::SetSizeMode(aMode);