Bug 502713 - Minimized windows resize their content to (0,0) r=jmathies r=vladimir

This commit is contained in:
Rob Arnold 2009-07-16 13:34:57 -07:00
Родитель 02bda8a1b2
Коммит 5756566ee5
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -4291,7 +4291,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
// forget the scroll position of the page. Note that we need to check the
// toplevel window, because child windows seem to go to 0x0 on minimize.
HWND toplevelWnd = GetTopLevelHWND(mWnd);
if (!newWidth && !newHeight && IsIconic(toplevelWnd)) {
if (mWnd == toplevelWnd && IsIconic(toplevelWnd)) {
result = PR_FALSE;
break;
}