private Rectangle getFinalMenuBounds(final IFigure target)
{
final IFigure referenceFigure = _referenceFigure;
Rectangle targetBounds = getInitialMenuBounds(target);
Dimension targetSize = target.getPreferredSize();
// copied from super.relocate because relativeX/Y are private in super
// changed from super to remove div by 2 that centers target; we want
// it to be corner-to-corner
targetBounds.x
+= targetBounds.width+4;
targetBounds.y
-= (targetSize.height / 2) - referenceFigure.getBounds().height/2;
targetBounds.setSize(targetSize);
//target.setBounds(targetBounds);
// final Rectangle viewPortRect =
// ((IHTMLGraphicalViewer)_owner.getViewer()).getViewport().getBounds();
// final Rectangle targetRect = targetBounds.getCopy();