diff --git a/widget/src/mac/nsWindow.cpp b/widget/src/mac/nsWindow.cpp index 0c1a566eb77a..91a851eeed9c 100644 --- a/widget/src/mac/nsWindow.cpp +++ b/widget/src/mac/nsWindow.cpp @@ -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; }