Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content window right spacing truncating inside widget #540

Open
khandallalit opened this issue Nov 22, 2023 · 0 comments
Open

Content window right spacing truncating inside widget #540

khandallalit opened this issue Nov 22, 2023 · 0 comments
Labels
compose Jetpack Compose Issue

Comments

@khandallalit
Copy link

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
image

Snapshot with V1.6.0
image

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
)
@skydoves skydoves added the compose Jetpack Compose Issue label Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compose Jetpack Compose Issue
Projects
None yet
Development

No branches or pull requests

2 participants