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:
parent
523f436957
commit
48cdb90341
1 changed files with 8 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue