How to have children of panelcontainer stick to opposite sides

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By exuin

I have a panelcontainer (layout bottom wide) with two children. I want one child to stick to the left side and the other child to stick to the right side. How do I do this?

:bust_in_silhouette: Reply From: Lopy

You can use Panel instead of PanelContainer. It will give you the same background, with more freedom to arrange it’s children. To have a Control stick to the left or the right, just set it’s left and right anchors accordingly, as well as margins.

I can’t select a layout option for a panel.

exuin | 2020-12-27 01:07

:bust_in_silhouette: Reply From: exuin

I figured it out. Use size flags. Set the right one’s size flags to expand and shrink end.

Thanks self!

exuin | 2021-02-07 16:43