I'm trying to show a CallOutBox positioned inside the main app window, so I write
Component* c = new Component();
Rectangle<int> refArea = buttonThatWasClicked->getScreenBounds(),
fitInArea = mainContentPanel->getScreenBounds();
CallOutBox::launchAsynchronously(c, refArea, nullptr)
'buttonThatWasClicked' is positioned near the bottom margin of the window. If I don't call updatePosition(), the callout is positioned by the right side of the button and vertically the centerline of the button and the callout are aligned.
I see 2 problems:
1. The arrow is initially shown on the left side of the callout, in agreement with the initial position of the callout. This could be avoided if the 'fitInArea' parameter could be specified before the callout were created.
2. Immediately after, the arrow disappears.