mirror of
https://github.com/penpot/penpot.git
synced 2026-05-12 19:43:48 +00:00
✨ Make clear that layoutChild is only available after the child was added
This commit is contained in:
parent
1b9a764a15
commit
7b2b078bc6
@ -96,7 +96,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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user