venik

Position

Static (default): The node is laid out in the normal flow of its flex container. It ignores insets and does not form a containing block for absolutely positioned descendants. Yoga defaults to relative; venik follows CSS.

Relative: Like static, the node takes part in the flexbox algorithm and takes up space in its container. Insets then offset it from its normal position. A relative node always forms a containing block.

Absolute: The node is taken out of the flow of its flex container. It takes up no space and does not affect the position of its siblings. Insets place it relative to its containing block.

node.setPositionType(PositionType.Absolute);