Fixed BDragger popup again, was broken after latest changes to BMenu/BPopupMenu

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17289 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-05-01 21:45:48 +00:00
parent 3e54c13abc
commit cc8ef734e9

View File

@ -566,5 +566,11 @@ BDragger::ShowPopUp(BView *target, BPoint where)
fPopUp->SetTargetForItems(fTarget);
fPopUp->Go(point, true, false, /*BRect(), */true);
float menuWidth, menuHeight;
fPopUp->GetPreferredSize(&menuWidth, &menuHeight);
BRect rect(0, 0, menuWidth, menuHeight);
rect.InsetBy(-0.5, -0.5);
rect.OffsetTo(point);
fPopUp->Go(point, true, false, rect, true);
}