Fixed not bother repositioning when coordinates don't change

This commit is contained in:
kipp%netscape.com 1999-04-08 00:00:13 +00:00
parent e85ace8aa5
commit 0c0ce42a16

View File

@ -1882,12 +1882,12 @@ NS_IMETHODIMP nsViewManager :: MoveViewTo(nsIView *aView, nscoord aX, nscoord aY
nscoord oldY;
aView->GetPosition(&oldX, &oldY);
aView->SetPosition(aX, aY);
// only do damage control if the view is visible
if ((aX != oldX) || (aY != oldY))
{
aView->SetPosition(aX, aY);
nsViewVisibility visibility;
aView->GetVisibility(visibility);
if (visibility != nsViewVisibility_kHide)