align

abstract fun align(size: Int, space: Int): Int

The child's offset from the top of space, for a child size pixels tall.

Return

the offset in pixels, applied without clamping.

Parameters

size

the child's own height, which an alignment reads and never changes.

space

the height offered, which is not always the container's: an arrangement placing a group of children passes the height left over.