Skip to content

Commit 4a388cc

Browse files
committed
Fix max width size limitation
1 parent fa451ff commit 4a388cc

File tree

1 file changed

+4
-1
lines changed
  • balloon/src/main/kotlin/com/skydoves/balloon

1 file changed

+4
-1
lines changed

balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,10 @@ public class Balloon private constructor(
19051905
}
19061906

19071907
builder.width != BalloonSizeSpec.WRAP -> builder.width.coerceAtMost(displayWidth)
1908-
else -> binding.root.measuredWidth.coerceIn(builder.minWidth, builder.maxWidth)
1908+
else ->
1909+
binding.root.measuredWidth
1910+
.coerceIn(builder.minWidth, builder.maxWidth)
1911+
.coerceAtMost(displayWidth)
19091912
}
19101913
}
19111914

0 commit comments

Comments
 (0)