Skip to content

Commit dec4a37

Browse files
authored
fix(android): use ceil for split-segment width to match commonmark path and rendered TextView (#282)
1 parent 431bc84 commit dec4a37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/com/swmansion/enriched/markdown/MeasurementStore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ object MeasurementStore {
381381
}
382382
}
383383

384-
val widthPx = width.toInt().coerceAtLeast(1)
384+
val widthPx = ceil(width).toInt().coerceAtLeast(1)
385385
val lastIndex = renderedSegments.lastIndex
386386
var totalHeightPx = 0f
387387
var maxContentWidthPx = 0f

0 commit comments

Comments
 (0)