bug 514007 - titlebar pops over window when switching orientation on HTC touch pro r=dougt

This commit is contained in:
Brad Lassey 2009-09-02 17:23:24 -04:00
Родитель 885fb55b5c
Коммит bd438f0291
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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);