androidx.compose.foundation.layout
wrapContentHeight
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Allow the content to measure at its desired height without regard for the incoming measurement [minimum height constraint]Constraints.minHeight, and, if unbounded is true, also without regard for the incoming measurement [maximum height constraint]Constraints.maxHeight. If the content's measured size is smaller than the minimum height constraint, align it within that minimum height space. If the content's measured size is larger than the maximum height constraint (only possible when unbounded is true), align over the maximum height space.
Parameters
fun Modifier.wrapContentHeight(
align: Alignment.Vertical = Alignment.CenterVertically,
unbounded: Boolean = false,
)
align: Alignment.VerticalOptional
align: Alignment.VerticalOptionalDefault: Alignment.CenterVertically
Not described.
unbounded: BooleanOptional
unbounded: BooleanOptionalDefault: false
Not described.
Library docs
Allow the content to measure at its desired height without regard for the incoming measurement
[minimum height constraint]Constraints.minHeight, and, if unbounded is true, also without
regard for the incoming measurement [maximum height constraint]Constraints.maxHeight. If the
content's measured size is smaller than the minimum height constraint, align it within that
minimum height space. If the content's measured size is larger than the maximum height constraint
(only possible when unbounded is true), align over the maximum height space.
Example usage: