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:
kmcclusk%netscape.com 2000-08-16 22:53:32 +00:00
Родитель 404a46bd9d
Коммит 48710494bb
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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;