Skip to content

Commit

Permalink
Merge pull request #749 from skydoves/fix/max-width-limit
Browse files Browse the repository at this point in the history
Fix max width size limitation
  • Loading branch information
skydoves authored Nov 2, 2024
2 parents fa451ff + 4a388cc commit 03a0292
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion balloon/src/main/kotlin/com/skydoves/balloon/Balloon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,10 @@ public class Balloon private constructor(
}

builder.width != BalloonSizeSpec.WRAP -> builder.width.coerceAtMost(displayWidth)
else -> binding.root.measuredWidth.coerceIn(builder.minWidth, builder.maxWidth)
else ->
binding.root.measuredWidth
.coerceIn(builder.minWidth, builder.maxWidth)
.coerceAtMost(displayWidth)
}
}

Expand Down

0 comments on commit 03a0292

Please sign in to comment.