-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Tooltip overlap view when content is bigger than space between view and screen edge #140
Comments
No problem! Let me know if you need any QA on that for the next release! |
I was thinking about this issue recently, it seems to need tricky ways. 🤔 The body content of the Balloon will be measured before showing the balloon over the anchor views, also the showing functionalities are definitely independent of the properties. That means we should re-measure the size of the balloon based on the showing functionalities. For example, if we want to show up this balloon using On the other hand, If we show up the balloon using The simplest solution is just to put the reasonable with size into Thanks! |
Hi @Beb3r, balloon.bodyWindow.setOverlapAnchor(false) or balloon.setAttachedInDecor(false) Thanks for your issue! |
Hi @skydoves, I have used 1.4.8 version currently and still got this issue. Also tried the solution you suggested above but it seems nothing happen. Do you have any idea on my problem? Thanks.
|
Please complete the following information:
Describe the Bug:
When the tooltip content is bigger than the space between the pointed view and the screen edge, the tooltip overlap the view.
Expected Behavior:
The tooltip shouldn't overlap the view, it should increase its height or width instead, making the content on multiple lines
For example let take this simple screen with a text view. We want to display the tooltip on its left side:

But adding right margin to the textview causes this:

The text was updated successfully, but these errors were encountered: