If we're being minimized, don't tell Gecko. This allows us to remember the
scroll position when we're un-minimized. bug#56156, r=rods/a=hyatt. git-svn-id: svn://10.0.0.236/trunk@81847 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3164,6 +3164,14 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
||||
mLastSize.height = newHeight;
|
||||
///nsRect rect(wp->x, wp->y, wp->cx, wp->cy);
|
||||
|
||||
// If we're being minimized, don't send the resize event to Gecko because
|
||||
// it will cause the scrollbar in the content area to go away and we'll
|
||||
// forget the scroll position of the page.
|
||||
if ( !newWidth && !newHeight ) {
|
||||
result = PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
// recalculate the width and height
|
||||
// this time based on the client area
|
||||
if (::GetClientRect(mWnd, &r)) {
|
||||
|
||||
Reference in New Issue
Block a user