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

Compose Balloon content not working with maxWidthRatio #779

Open
nrotonda opened this issue Jan 30, 2025 · 0 comments
Open

Compose Balloon content not working with maxWidthRatio #779

nrotonda opened this issue Jan 30, 2025 · 0 comments

Comments

@nrotonda
Copy link

  • Library Version 1.6.12
  • Affected Device(s) Tested on Pixel Tablet and Pixel 8

I am setting the maxWidthRatio to something smaller than 1.0f and the text composable width inside to balloon does not shrink with the same ratio.
I added this to the ComposeActivity's rememberBalloonBuilder in the provided sample code in the library.
setMaxWidthRatio(0.6f)

and updated the text of the first Balloon to this
text = "Now you can edit your profile1 profile2 profile3 profile4 really long text so we can test stuff Now you can edit your profile1 profile2 profile3 profile4 really long text so we can test stuff",

I would expect the text to wrap when it reaches the end, but it will continue off screen and eventually wrap when it reaches the end of the phone's width.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant