fix problem where resizing window would cause jiggling. the workaround we put in for os9 seems to no longer be needed and gives osx fits. patch from lws@mac.com. r=pink/rs=blake. bug#86740

This commit is contained in:
pinkerton%netscape.com 2002-05-29 14:46:23 +00:00
parent 6a348190c4
commit 8767b764ad

View File

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