Bug 269480 - Zooming uses wrong rect. Patch by ccarlen. r=pinkerton, sr=sfraser

This commit is contained in:
pedemont%us.ibm.com 2005-01-17 23:21:33 +00:00
Родитель a4cf2cb1e4
Коммит 4a2eb05e59
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -1121,8 +1121,11 @@ NS_IMETHODIMP nsMacWindow::Move(PRInt32 aX, PRInt32 aY)
// update userstate to match, if appropriate // update userstate to match, if appropriate
PRInt32 sizeMode; PRInt32 sizeMode;
GetSizeMode(&sizeMode); GetSizeMode(&sizeMode);
if (sizeMode == nsSizeMode_Normal) if (sizeMode == nsSizeMode_Normal) {
::SetWindowUserState(mWindowPtr, &portBounds); Rect newBounds;
::GetWindowBounds(mWindowPtr, kWindowGlobalPortRgn, &newBounds);
::SetWindowUserState(mWindowPtr, &newBounds);
}
} }
// propagate the event in global coordinates // propagate the event in global coordinates