set_layout_props
Configure a node's auto-layout child behavior: set layoutAlign (stretch/inherit), layoutGrow (1 for fill, 0 for hug), and layoutPositioning (absolute/auto). Returns node ID.
Instructions
Set a node's auto-layout child properties — how it behaves inside its auto-layout parent. layoutAlign (STRETCH = fill the counter axis, INHERIT = default). layoutGrow (1 = grow to fill the primary axis / "fill container", 0 = hug). layoutPositioning (ABSOLUTE = ignore the flow and position freely, AUTO = participate in layout). Any field may be omitted to leave it unchanged. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Child node id (must sit inside an auto-layout frame) | |
| layoutGrow | No | 1 = grow to fill the primary axis, 0 = hug content | |
| layoutAlign | No | Counter-axis alignment; STRETCH fills the counter axis | |
| layoutPositioning | No | ABSOLUTE takes the node out of the auto-layout flow |