Fix to measure RollingNumber with +inf maxHeight
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user