Balloon
Balloon copied to clipboard
Content window right spacing truncating inside widget
Please complete the following information:
- Library Version [v1.6.3] balloon = { module = "com.github.skydoves:balloon-compose", version = "1.6.3" }
- Affected Device(s) [Most of devices]
Describe the Bug: Balloon window content truncating the inside widget from the right side. Was working fine with V1.6.0. And also horizontal margin is not applying same.
Expected Behavior: Shouldn't be truncating the content and spacing should be same if define the same horizontal margin.
Snapshot with 1.6.3
Snapshot with V1.6.0
Config->
val builder = rememberBalloonBuilder {
// Change the arrow config
setArrowSize(BalloonSizeSpec.WRAP)
setArrowDrawableResource(R.drawable.ic_tooltip_arrow)
setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR)
setArrowPosition(arrowPosition)
// Change the window config
setHeight(BalloonSizeSpec.WRAP)
setMarginHorizontal(8)
setPadding(16)
setCornerRadius(16f)
setBackgroundColor(bgColor)
// Change the animation config
setBalloonAnimation(BalloonAnimation.NONE)
// Dismiss when outside click
setDismissWhenClicked(true)
}
Balloon(
modifier = modifier,
builder = builder,
balloonContent = balloonContent,
content = balloonWindowContent
)