mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 476705 - touch up patch for window state problem.
This commit is contained in:
parent
a8b322321a
commit
7d5de50f2a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user