1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Made the live constant editor call resize on all visible components.

This commit is contained in:
jules 2013-12-06 14:49:17 +00:00
parent 523f436957
commit 48cdb90341

View file

@ -58,16 +58,15 @@ private:
static void repaintAndResizeAllComps (Component::SafePointer<Component> c)
{
for (int i = c->getNumChildComponents(); --i >= 0;)
if (c->isVisible())
{
if (c != nullptr)
{
if (Component* child = c->getChildComponent(i))
{
child->repaint();
child->resized();
}
}
c->repaint();
c->resized();
for (int i = c->getNumChildComponents(); --i >= 0;)
if (c != nullptr)
if (Component* child = c->getChildComponent(i))
repaintAndResizeAllComps (child);
}
}
};