venik

Flex direction

Flex direction controls the direction in which the children of a node are laid out, also called the main axis. The cross axis is perpendicular to it and is the axis along which wrapped lines stack.

Row (default): Lay children out from left to right. With wrapping, the next line starts under the first item.

Row reverse: Lay children out from right to left. With wrapping, the next line starts under the first item on the right.

Column: Lay children out from top to bottom. With wrapping, the next line starts to the right of the first item.

Column reverse: Lay children out from bottom to top. With wrapping, the next line starts to the right of the first item at the bottom.

Yoga defaults to column; venik follows CSS and defaults to row.

node.setFlexDirection(FlexDirection.Column);