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

Correct issue postitioning tooltip on scrollviews #166

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

buttcmd
Copy link

@buttcmd buttcmd commented Aug 28, 2018

When a tooltip was positioned out of the view the library changed the position to fit the tooltip in the view taking care of the margins. That is fine but not always. In UIScrollViews and its descendants if the tip is placed with a high "y" coordinate the library changes the position in spite of being correctly placed inside de contentview.

Tips now are showed in scrollviews considering the size of the contentview not the real scrollview size.

It is useful for example when the tip is showed in a UITableView. If we don't make the change in the code, when the tip is showed in a row which stays down in the table (high IndexPath) the tip is showed upper in the content view so wildly misplaced

Hope the change is welcome.

P.S. I suppose that the change would be useful also in the "x" direction but i have not needed it.

…tview not the real scrollview size.

It is useful for example when the tip is showed in a UITableView. If we don't make the change in the code, when the tip is showed in a row which stays down in the table (high IndexPath) the tip is showed upper in the content view so wildly misplaced
@andreamazz andreamazz merged commit 955feda into andreamazz:master Sep 6, 2018
@andreamazz
Copy link
Owner

Looks good, thank you. It might be worth to account for the x, but it might be an edge, so for now I'll merge this.

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

Successfully merging this pull request may close these issues.

2 participants