fillMaxSize

context(scope: ConstrainedScope)
fun SwingModifier.fillMaxSize(@FloatRange(from = 0.0, to = 1.0) fraction: Float = 1.0f): SwingModifier

Makes the child occupy fraction of the greatest bounded width and height its parent offers it. Each result is held between the offered minimum and maximum. Either unbounded axis is left unchanged.

Return

this modifier with the width and height fill declared on it.

Parameters

fraction

the fraction of each offered maximum extent to occupy.