mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
fixed offset problems
This commit is contained in:
parent
8cd76a3947
commit
383aafe32c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user