From 69d3241a337b4018e864a58673a9e329f6567ff1 Mon Sep 17 00:00:00 2001 From: iisaev Date: Tue, 3 Nov 2026 13:53:25 +0300 Subject: [PATCH] Expand editor sidebar content to fill the available height --- src/Tool/ToolWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Tool/ToolWindow.cs b/src/Tool/ToolWindow.cs index 564cc5e..6143582 100644 --- a/src/Tool/ToolWindow.cs +++ b/src/Tool/ToolWindow.cs @@ -382,6 +382,9 @@ namespace Cthangover.Mods.Interface.Tool scroll.SizeFlagsHorizontal = Control.SizeFlags.ExpandFill; panel.AddChild(scroll); content.SizeFlagsHorizontal = Control.SizeFlags.ExpandFill; + // Fill the visible height too: an expanding list inside (a palette, an entity list) gets the whole + // panel instead of its minimum height; taller content still scrolls. + content.SizeFlagsVertical = Control.SizeFlags.ExpandFill; content.AddThemeConstantOverride("separation", UiTokens.Space2); scroll.AddChild(content);