Stylianos Gakis
03/08/2022, 12:37 PMLayout{}Layout {}measurePolicyLayout(
    content = content
) { measurables, constraints ->
    val width = (constraints.maxWidth / 2) - (horizontalSpacingInPx / 2) // I am placing 2 side by side
    val height = measurables.maxOf { it.maxIntrinsicHeight(width) } // What would I do here instead
    val placeables = measurables.map { measurable ->
        val halfWidthAndIntrinsicMaxHeightConstraint = constraints.copy(
            minHeight = height,
            maxHeight = height,
            maxWidth = width,
            minWidth = width
        )
        measurable.measure(halfWidthAndIntrinsicMaxHeightConstraint)
    }Albert Chang
03/08/2022, 12:51 PMStylianos Gakis
03/08/2022, 1:12 PMcontentText().requiredHeightIn(min = 80.dp).defaultMinSize(minHeight = 80.dp)Tobias Suchalla
03/08/2022, 2:06 PMAnalogue ofwhich allows to subcompose the actual content during the measuring stage for example to use the values calculated during the measurement as params for the composition of the children.Layout
Stylianos Gakis
03/08/2022, 2:17 PMAlbert Chang
03/08/2022, 3:28 PMSubcomposeLayoutZach Klippenstein (he/him) [MOD]
03/08/2022, 3:58 PMStylianos Gakis
03/08/2022, 4:00 PMZach Klippenstein (he/him) [MOD]
03/08/2022, 4:05 PMZach Klippenstein (he/him) [MOD]
03/08/2022, 4:05 PMStylianos Gakis
03/08/2022, 4:06 PMZach Klippenstein (he/him) [MOD]
03/08/2022, 4:07 PMDoris Liu
03/08/2022, 6:44 PM