зеркало из https://github.com/mozilla/gecko-dev.git
bug 514007 - titlebar pops over window when switching orientation on HTC touch pro r=dougt
This commit is contained in:
Родитель
885fb55b5c
Коммит
bd438f0291
|
@ -4185,6 +4185,16 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
|||
case SPI_SETCURRENTIM:
|
||||
nsWindowCE::NotifySoftKbObservers();
|
||||
break;
|
||||
case SETTINGCHANGE_RESET:
|
||||
if (mWindowType == eWindowType_invisible) {
|
||||
// The OS sees to get confused and think that the invisable window
|
||||
// is in the foreground after an orientation change. By actually
|
||||
// setting it to the foreground and hiding it, we set it strait.
|
||||
// See bug 514007 for details.
|
||||
SetForegroundWindow(mWnd);
|
||||
ShowWindow(mWnd, SW_HIDE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
OnSettingsChange(wParam, lParam);
|
||||
|
|
Загрузка…
Ссылка в новой задаче