Hi, this is related to my <last question>, if some...
# compose
n
Hi, this is related to my last question, if someone could please explain why this happens it would be greatly appreciated!
Copy code
Row(modifier = Modifier.height(IntrinsicSize.Max).border(2.dp, Color.Red)) {
    Text(
        modifier = Modifier
            .heightIn(min = 4.dp)
            .defaultMinSize(minHeight = 80.dp)
            .border(2.dp, Color.Green),
        text = "Why is the row 80dp?"
    )
}
Since I'm providing
heightIn
I would expect
defaultMinSize
to not apply, but when I use intrinsic height on the row it's sized to the
defaultMinSize
. Does anyone know why?
a
It's because you are using
Modifier.height(IntrinsicSize.Max)
. When intrinsic height is calculated, there is no min height constraint.