From 8a0f61990128c4a4ff0795a5a48294821a5c855b Mon Sep 17 00:00:00 2001 From: Alex Levenson Date: Fri, 5 Dec 2025 20:13:46 -0800 Subject: [PATCH] Fix changes to decorator settings that effect layout not updating the WYSIWYG view --- modules/foleys_gui_magic/Layout/foleys_GuiItem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/foleys_gui_magic/Layout/foleys_GuiItem.cpp b/modules/foleys_gui_magic/Layout/foleys_GuiItem.cpp index e940d7fa..f508ad01 100644 --- a/modules/foleys_gui_magic/Layout/foleys_GuiItem.cpp +++ b/modules/foleys_gui_magic/Layout/foleys_GuiItem.cpp @@ -104,6 +104,9 @@ void GuiItem::updateInternal() setEditMode (magicBuilder.isEditModeOn()); + // we need to call resized() because changes to decorators can cause *internal* layout changes + // and JUCE's setBounds() method thinks we don't need to do that because the outer bounds didn't change + resized(); repaint(); }