[BeOS]Fixing dragging rect bounds, Bug 343569, p=sergei_d, r=thesuckiestemail, BeOS-only

git-svn-id: svn://10.0.0.236/trunk@201679 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sergei_d%fi.tartu.ee
2006-07-06 11:44:51 +00:00
parent 14e56648c0
commit b7eed588a5

View File

@@ -171,8 +171,9 @@ nsDragService::InvokeDragSession (nsIDOMNode *aDOMNode,
if (nsnull != aRegion)
{
PRInt32 aX, aY, aWidth, aHeight;
// TODO. Region may represent multiple rects - when dragging multiple items.
aRegion->GetBoundingBox(&aX, &aY, &aWidth, &aHeight);
dragRect.Set( aX, aY, aWidth, aHeight);
dragRect.Set( aX, aY, aX + aWidth, aX + aHeight);
haveRect = true;
// does this need to be offset?
}