Expand editor sidebar content to fill the available height

This commit is contained in:
cthangover committed 2026-11-03 13:53:25 +03:00
1 parent a7f1a0abbe
commit 69d3241a33
1 file changed
+3
+3
View File
@@ -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);