Expand editor sidebar content to fill the available height
This commit is contained in:
1 parent
a7f1a0abbe
commit
69d3241a33
1 file changed
+3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user