зеркало из https://github.com/mozilla/gecko-dev.git
Suppress nsWindow::Move if the window is already at location specified b=44476 (p=Tomi.Leppikangas@oulu.fi) r=syd@netscape.com
This commit is contained in:
Родитель
404a46bd9d
Коммит
48710494bb
|
@ -2628,6 +2628,11 @@ NS_IMETHODIMP nsWindow::ConstrainPosition(PRInt32 *aX, PRInt32 *aY)
|
||||||
|
|
||||||
NS_IMETHODIMP nsWindow::Move(PRInt32 aX, PRInt32 aY)
|
NS_IMETHODIMP nsWindow::Move(PRInt32 aX, PRInt32 aY)
|
||||||
{
|
{
|
||||||
|
// check if we are at right place already
|
||||||
|
if((aX == mBounds.x) && (aY == mBounds.y) && !mIsToplevel) {
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
mBounds.x = aX;
|
mBounds.x = aX;
|
||||||
mBounds.y = aY;
|
mBounds.y = aY;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче