Skip to content

Commit 6d39192

Browse files
authored
Merge pull request #176 from mmoser-hw/patch-1
Correct prefix measurement logic in FormattedList
2 parents 25ba84d + 1f8d613 commit 6d39192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

richtext-ui/src/commonMain/kotlin/com/halilibo/richtext/ui/FormattedList.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private val LocalListLevel = compositionLocalOf { 0 }
259259

260260
// Measure the prefixes first.
261261
val prefixPlaceables = prefixMeasureables.map { marker ->
262-
marker.measure(Constraints())
262+
marker.measure(constraints)
263263
}
264264
.toList()
265265
val widestPrefix = prefixPlaceables.maxByOrNull { it.width }!!

0 commit comments

Comments
 (0)