mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
reset sizemode to normal when window is sized using the mouse. bug 107937 r=ben,jag
This commit is contained in:
parent
69fd695df9
commit
cf092ddb1e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user