ControlChildrenSize||doc136561

September 20, 2022

Format

HorizontalLayoutContainer.ControlChildrenSize

Describe

Whether the vertical layout controls the size of child controls. It takes effect only when controlchildrensize is true. The size of all child controls of the layout will be uniformly and forcibly adjusted to childrensize.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the horizontal layout control for testing according to the name
local container = APIRootWindow.APIHorizontalLayoutContainer

--Set the horizontal layout control to control the size of the subset control
container.ControlChildrenSize = true