From a2822a5e9d682e691e1673b991424168412ce9fb Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Tue, 7 Sep 2021 14:59:45 -0400 Subject: [PATCH] Fix non expanding IMGUIContainer IMGUIContainer now expands so flexible space works correctly --- Editor/ToolbarCallback.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Editor/ToolbarCallback.cs b/Editor/ToolbarCallback.cs index 2791b26..22e90cb 100644 --- a/Editor/ToolbarCallback.cs +++ b/Editor/ToolbarCallback.cs @@ -70,6 +70,7 @@ void RegisterCallback(string root, Action cb) { } }; var container = new IMGUIContainer(); + container.style.flexGrow = 1; container.onGUIHandler += () => { cb?.Invoke(); };