positionChildren

fun positionChildren(element: Element, knownWidth: Double? = null): Rectangle(source)

Positions the children of the given element based on its computed style and layout properties. This method calculates the layout and screen positions of the element's children, taking into account alignment, spacing, flex, and other layout properties.

Return

a Rectangle representing the bounding area of the positioned children.

Parameters

element

the parent element whose children will be positioned.

knownWidth

an optional specified width for the element; if null, the element's screen width will be used.