reset sizemode to normal when window is sized using the mouse. bug 107937 r=ben,jag

This commit is contained in:
danm%netscape.com 2002-02-08 22:35:15 +00:00
parent 69fd695df9
commit cf092ddb1e

View File

@ -1386,6 +1386,7 @@ PRBool nsMacEventHandler::ResizeEvent ( WindowRef inWindow )
::GetWindowPortBounds ( inWindow, &macRect );
::LocalToGlobal(&topLeft(macRect));
::LocalToGlobal(&botRight(macRect));
mTopLevelWidget->SetSizeMode(nsSizeMode_Normal); // size a zoomed window and it's no longer zoomed
mTopLevelWidget->Resize(macRect.right - macRect.left + 1, macRect.bottom - macRect.top + 1, PR_FALSE);
if (nsnull != gRollupListener && (nsnull != gRollupWidget) )
gRollupListener->Rollup();