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

Improve HoverTip placement logic #395

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

jlfwong
Copy link
Owner

@jlfwong jlfwong commented May 17, 2022

This changes the HoverTip placement logic to use measurements from the actual DOM node rather than basing everything on the maximum sizes.

This avoids some counter-intuitive behaviour, most importantly situations where the label would overflow off the left side of the screen for no obvious reason.

Before After
image image

Fixes #394
Fixes #256

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 41.597% when pulling 779dbc4 on jlfwong/improved-hovertip-placement into 48d692c on main.

@jlfwong jlfwong merged commit 7ae545a into main May 17, 2022
@jlfwong jlfwong deleted the jlfwong/improved-hovertip-placement branch May 19, 2022 03:35
jackerghan pushed a commit to jackerghan/speedscope that referenced this pull request Jul 28, 2023
This changes the HoverTip placement logic to use measurements from the actual DOM node rather than basing everything on the maximum sizes.

This avoids some counter-intuitive behaviour, most importantly situations where the label would overflow off the left side of the screen for no obvious reason.

Fixes jlfwong#394
Fixes jlfwong#256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants