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

flows tooltip to the top, unless it overflows viewport and there's space below cursor to accommodate tooltip #40

Merged
merged 4 commits into from
Sep 15, 2017

Conversation

cedricsam
Copy link
Contributor

@cedricsam cedricsam commented Sep 15, 2017

@1wheel
Copy link
Collaborator

1wheel commented Sep 15, 2017

Is the Math.max necessary? What about:

top = innerHeight - y - 20 > bb.height ? y + 20 : y - bb.height - 20;

@cedricsam
Copy link
Contributor Author

Works for me!

@1wheel 1wheel merged commit 80c880d into gka:master Sep 15, 2017
1wheel added a commit that referenced this pull request Sep 15, 2017
1wheel added a commit that referenced this pull request Sep 15, 2017
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