<h2 id="fillmaxheight">fillMaxHeight</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun SubspaceModifier.fillMaxHeight(
    @FloatRange(from = 0.0, to = 1.0) fraction: Float = 1f
): SubspaceModifier
```

Have the content fill (possibly only partially) the [VolumeConstraints.maxHeight](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) of the incoming
measurement constraints, by setting the [minimum height](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) and the
[maximum height](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) to be equal to the
[maximum height](/jetpack-compose/androidx.xr.compose/compose/classes/VolumeConstraints) 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 `VolumeConstraints.Infinity` this modifier will have no effect.

#### Parameters

| | |
| --- | --- |
| fraction | The fraction of the maximum height to use, between `0` and `1`, inclusive. |