fixed offset problems

This commit is contained in:
dcone%netscape.com 1998-10-07 15:13:19 +00:00
parent 8cd76a3947
commit 383aafe32c

View File

@ -1672,8 +1672,13 @@ NS_IMETHODIMP nsWindow::RemoveTooltips()
void nsWindow::ConvertToDeviceCoordinates(nscoord &aX,nscoord &aY)
{
nsRect rect;
PRInt32 offx,offy;
this->CalcOffset(offx,offy);
this->GetBounds(rect);
rect.x+=offx;
rect.y+=offy;
aX +=rect.x;
aY +=rect.y;
}