nathan
12/04/2024, 10:40 PMRow(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?Albert Chang
12/05/2024, 9:39 AMModifier.height(IntrinsicSize.Max)
. When intrinsic height is calculated, there is no min height constraint.