зеркало из https://github.com/mozilla/pjs.git
Bug 269480 - Zooming uses wrong rect. Patch by ccarlen. r=pinkerton, sr=sfraser
This commit is contained in:
Родитель
a4cf2cb1e4
Коммит
4a2eb05e59
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче