wrapContentWidth

context(scope: ConstrainedScope)
fun SwingModifier.wrapContentWidth(align: Alignment.Horizontal = Alignment.CenterHorizontally, unbounded: Boolean = false): SwingModifier

Lets the child choose its width without the offered minimum and, where unbounded, maximum; it is placed within the resulting wrapper by align.

Return

this modifier with the wrapped width declared on it.