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

Full screen width is not applied #499

Closed
alexanderfilipzik opened this issue Oct 6, 2023 · 1 comment
Closed

Full screen width is not applied #499

alexanderfilipzik opened this issue Oct 6, 2023 · 1 comment
Assignees
Labels
compose Jetpack Compose Issue

Comments

@alexanderfilipzik
Copy link

alexanderfilipzik commented Oct 6, 2023

  • Library Version [v1.6.0]
  • Affected Device(s) [every device]

Describe the Bug:

  • try to display a popover with full width
val builder = rememberBalloonBuilder {
    setArrowSize(arrowSize)
    setWidthRatio(1f)
    setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR)
  }

Balloon(
      builder = builder,
      balloonContent = {
        Column(
          modifier = Modifier.fillMaxWidth(),
          horizontalAlignment = Alignment.CenterHorizontally,
        ) {
          Text("test")
        }
      },
    ) { balloonWindow ->
      ....

Brown is background of the screen, grey is the background from AndroidStudio.
image

i think the issue is coming from this line here

Expected Behavior:

When i use balloonWindow.showAlignTop() or balloonWindow.showAlignBottom() the arrowSize shouldn't be substracted

@skydoves
Copy link
Owner

skydoves commented Oct 7, 2023

Hey @alexanderfilipzik, the new release 1.6.1 resolves this issue. Thanks for reporting this issue!

@skydoves skydoves closed this as completed Oct 7, 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