diff --git a/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt b/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt index 6117bda9..f4d9a8c4 100644 --- a/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt +++ b/balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt @@ -1958,7 +1958,7 @@ public class Balloon private constructor( } else { 0 + builder.marginRight + builder.marginLeft + (builder.arrowSize * 2) } - val maxTextWidth = builder.maxWidth - spaces + val maxTextWidth = (builder.maxWidth - spaces).coerceAtMost(displayWidth) return when { builder.widthRatio != NO_Float_VALUE ->