androidx.compose.foundation.layout
fillMaxHeight
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Have the content fill (possibly only partially) the Constraints.maxHeight of the incoming measurement constraints, by setting the [minimum height]Constraints.minHeight and the [maximum height]Constraints.maxHeight to be equal to the [maximum height]Constraints.maxHeight multiplied by fraction. Note that, by default, the fraction is 1, so the modifier will make the content fill the whole available height. If the incoming maximum height is Constraints.Infinity this modifier will have no effect.
Parameters
fun Modifier.fillMaxHeight(
fraction: Float = 1f,
)
fraction: FloatOptional
fraction: FloatOptionalDefault: 1f
The fraction of the maximum height to use, between 0 and 1, inclusive. Example usage:
Library docs
Have the content fill (possibly only partially) the Constraints.maxHeight of the incoming
measurement constraints, by setting the [minimum height]Constraints.minHeight and the
[maximum height]Constraints.maxHeight to be equal to the
[maximum height]Constraints.maxHeight multiplied by fraction. Note that, by default, the
fraction is 1, so the modifier will make the content fill the whole available height. If the
incoming maximum height is Constraints.Infinity this modifier will have no effect.