Skip to content

Commit

Permalink
Update core/designsystem/src/commonMain/kotlin/io/github/droidkaigi/c…
Browse files Browse the repository at this point in the history
…onfsched/designsystem/component/AutoSizeText.kt

Co-authored-by: Takahiro Menju <[email protected]>
  • Loading branch information
mannodermaus and takahirom authored Sep 4, 2024
1 parent be532bb commit d0ad0ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private fun BoxWithConstraintsScope.rememberFontSize(
// If the original text size fits already without overflowing,
// then there is no need to do anything
if (!style.fontSize.hasOverflowWhenPlaced()) {
style.fontSize
return@remember style.fontSize
}

// Otherwise, find the biggest font size that still fits using binary search
Expand Down

0 comments on commit d0ad0ff

Please sign in to comment.