hi,
I have some temporary Components added using getTopLevelComponent() (tooltips for example) instead of adding them to the desktop.
It took me some time to discover that it was because of that that my plugin window was suddenly changing its size.
I’ve had to change that:
void resized()
{
juce::Component* const c = getChildComponent (0);
if (c != 0)
c->setBounds (0, 0, getWidth(), getHeight());
repaint();
}
to
void resized()
{
if (editor != 0)
editor->setBounds (0, 0, getWidth(), getHeight());
repaint();
}
and store the pointer to editor in the constructor
it’s also necessary to check in childBoundsChanged() that the child is really our Editor and not a temp Component