[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:
@@ -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?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user