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

Gravity.TOP not honored with fitToScreen=True #135

Open
jcunningham77 opened this issue Jun 4, 2019 · 4 comments
Open

Gravity.TOP not honored with fitToScreen=True #135

jcunningham77 opened this issue Jun 4, 2019 · 4 comments

Comments

@jcunningham77
Copy link

jcunningham77 commented Jun 4, 2019

In versions release-2.0.1 and above, when displaying a tooltip above a view near the right margin, sending fitToScreen=True will cause that tooltip to be displayed alongside the view, instead of staggered above it.

Seems like fitToScreen flag is a newer option, as I don't see it being used in our client using version 1.3.15.

We cannot upgrade to the latest version with the tooltip truncated on the right hand side, or with it obscuring icons to the left of the anchor view.

See below examples:
correctGravity_1_3_15 . <--from release 1.3.15, works great
correctGravity_1_3_15

tooltipTruncated_2_0_3 <--from release 2.0.3, truncated since we send fitToScreen=false
tooltipTruncated_2_0_3

TooltipGravityTopFail_2_0_3 <--release 2.0.3, Gravity to the left, even though sending Gravity.TOP and fitToScreen=true
TooltipGravityTopFail_2_0_3

I will attempt to fix and submit a PR.

@binaykumarrana
Copy link

Is this issue fixed? I am facing this issue.

Any solution to achieve like the first image and if gravity is bottom then same like first image only tooltip will be bottom.

Any help would be appreciated.

Thanks

@edisonpagtakhan
Copy link

edisonpagtakhan commented Jan 15, 2020

Any updates on this? My anchor view is found on the upper right corner of the screen, and the tooltip should popup below that view. The tooltip gets cut off. Thanks!

@RaulitoGC
Copy link

RaulitoGC commented Jul 2, 2020

Any update for this issue?

@RaulitoGC
Copy link

I fixed this issue using setMax() method. It split my message into two lines. I hope this will help you :)

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

4 participants