ControlChildrenSize||doc136566

September 20, 2022

Format

GridView.ControlChildrenSize

Describe

Whether the grid layout controls the size of child controls. It takes effect only when controlchildrensize is true, and the sizes 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 grid layout control for testing according to the name
local container = APIRootWindow.APIGridView

--Set the grid layout control to control the size of the subset control
container.ControlCHildrenSize = true