Skip to content

Commit 648c654

Browse files
committed
refactor #580 Replace with intValue.
1 parent 2248754 commit 648c654

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

markdown/src/main/java/jp/toastkid/markdown/presentation/CodeBlockViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CodeBlockViewModel {
2929
private val lineCountState = mutableIntStateOf(1)
3030

3131
fun maxHeight(fontSize: TextUnit): Dp {
32-
return min(lineCountState.value * fontSize.value * 1.55.em.value, 800f).dp
32+
return min(lineCountState.intValue * fontSize.value * 1.55.em.value, 800f).dp
3333
}
3434

3535
fun content() = content

0 commit comments

Comments
 (0)