by @alexstyl
✉️ Leave your feedback

← Back to Foundation Layout

wrapContentHeight

Modifier
in
Foundation Layout
. Since 0.1.0-dev15

Overview

Examples

Community Notes

Allow the content to measure at its desired height without regard for the incoming measurement minimum height constraintConstraints.minHeight, and, if unbounded is true, also without regard for the incoming measurement maximum height constraintConstraints.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.

Overloads

wrapContentHeight

fun Modifier.wrapContentHeight(
    align: Alignment.Vertical = Alignment.CenterVertically,
    unbounded: Boolean = false
)
Next ComponentAlignmentLineOffset