position is relative : add to the top left point of the original rect
fixes bug #700 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17987 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -358,16 +358,13 @@ _TContainerViewFilter_::ObjectDropFilter(BMessage *msg, BHandler **_handler)
|
|||||||
else
|
else
|
||||||
dragger = NULL;
|
dragger = NULL;
|
||||||
|
|
||||||
if (dragger->fRelation == BDragger::TARGET_IS_CHILD) {
|
BRect rect;
|
||||||
BRect rect = dragger->Frame();
|
if (dragger->fRelation == BDragger::TARGET_IS_CHILD)
|
||||||
rect.OffsetTo(point);
|
rect = dragger->Frame();
|
||||||
point = fShelf->AdjustReplicantBy(rect, msg);
|
else
|
||||||
|
rect = dragger->fTarget->Frame();
|
||||||
} else {
|
rect.OffsetTo(point);
|
||||||
BRect rect = dragger->fTarget->Frame();
|
point = rect.LeftTop() + fShelf->AdjustReplicantBy(rect, msg);
|
||||||
rect.OffsetTo(point);
|
|
||||||
point = fShelf->AdjustReplicantBy(rect, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (dragger->fRelation == BDragger::TARGET_IS_PARENT)
|
if (dragger->fRelation == BDragger::TARGET_IS_PARENT)
|
||||||
dragger->fTarget->MoveTo(point);
|
dragger->fTarget->MoveTo(point);
|
||||||
|
|||||||
Reference in New Issue
Block a user