-
-
Notifications
You must be signed in to change notification settings - Fork 298
Height of balloon is not calculated properly with custom layout #770
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
Comments
Hey @scorpeeon, this behavior is expected. To address it, you can specify the balloon width by using |
@skydoves My problem is not with the width or default lack of horizontal spacing, I know that can be added easily - my problem is about the layout content getting cut vertically. It might not be super clear from the previous image, so I'm attaching another one to point out what I mean: Is this a known issue? |
I have the same issue with large custom layouts on height. |
I also have this issue, is there any reason the height would be wrong? |
Please complete the following information:
Describe the Bug:
Hey folks, an issue I noticed is that when I set a custom layout and the height of the ballon to be wrapped:
I noticed that the bottom of the text tends to get cut off.

See attached screenshot:
When I include the same layout on a regular Android layout, I don't see any problems:

Sample layout:
The issue seems to be similar to this one:
#372
However that issue seemed to be related to supporting multiple languages, while I'm seeing this problem even for a simple use-case, using a static layout.
I don't know how the layout is constructed by the library to include the arrow icon, etc., but my feeling is that something might be off there when calculating the height in certain use-cases.
Expected Behavior:
Height should be calculated properly and content should not be cut off.
The text was updated successfully, but these errors were encountered: