wrapContentSize

context(scope: ConstrainedScope)
fun SwingModifier.wrapContentSize(align: Alignment = Alignment.Center, unbounded: Boolean = false): SwingModifier

Lets the child choose both extents without the offered minima and, where unbounded, maxima; it is placed within the resulting wrapper by align.

Return

this modifier with the wrapped size declared on it.