Fix to measure RollingNumber with +inf maxHeight

This commit is contained in:
Dude so hot authored and renovate[bot] committed 2024-10-19 22:53:37 +08:00
1 parent d237a18aae
commit 87d0cdd9e5
1 file changed
+1 -1
@@ -157,7 +157,7 @@ fun RollingNumber(
val size = rememberTextStyleNumberMaxSize(styleNoSpacing)
LazyRow(
modifier = modifier.clipToBounds().padding(horizontal = spacing).layout { measurable, constraints ->
val placeable = measurable.measure(constraints)
val placeable = measurable.measure(constraints.copy(maxHeight = Int.MAX_VALUE))
layout(width = placeable.width, height = size.height.roundToPx()) {
placeable.place(0, 0)
}