Make clear that layoutChild is only available after the child was added

This commit is contained in:
Dominik Jain 2026-03-03 12:41:31 +01:00 committed by Andrey Antukh
parent bf87af1928
commit ba138de53e

View File

@ -93,7 +93,7 @@ Use the `export_shape` and `import_image` tools to export and import images.
Boards can have layout systems that automatically control the positioning and spacing of their children:
* If a board has a layout system, then child positions are controlled by the layout system.
For every child, key properties of the child within the layout are stored in `child.layoutChild: LayoutChildProperties`:
After adding a shape to the layout as a child, key properties of the child within the layout are controlled in `child.layoutChild: LayoutChildProperties`:
- `absolute: boolean` - if true, child position is not controlled by layout system. x/y will set *relative* position within parent!
- margins (`topMargin`, `rightMargin`, `bottomMargin`, `leftMargin` or combined `verticalMargin`, `horizontalMargin`)
- sizing (`verticalSizing`, `horizontalSizing`: "fill" | "auto" | "fix")