Browse Source

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

tags/2021-05-28
jules 12 years ago
parent
commit
48cdb90341
1 changed files with 8 additions and 9 deletions
  1. +8
    -9
      modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp

+ 8
- 9
modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp View File

@@ -58,16 +58,15 @@ private:
static void repaintAndResizeAllComps (Component::SafePointer<Component> c) 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…
Cancel
Save