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

Flamegraph: Fix tooltip positioning #67938

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented May 5, 2023

Tooltip that is shown when hovering over flamegraph nodes had the wrong position. This was broken by #64428 but mainly because the positioning relied on double rendering of the component so the actual repositioning was done on remount. The Tooltip component itself isn't working in a way that would allow it to track moving trigger element.

This rewrites this to use a simple fixed-positioned div with the same styling as the tooltip.

Copy link
Contributor

@joey-grafana joey-grafana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM! 👍

@aocenas aocenas merged commit 37de4a8 into main May 11, 2023
24 checks passed
@aocenas aocenas deleted the aocenas/flamegraph/fix-tooltip branch May 11, 2023 14:08
grafanabot pushed a commit that referenced this pull request May 11, 2023
ryantxu pushed a commit that referenced this pull request May 11, 2023
aocenas added a commit that referenced this pull request May 12, 2023
Flamegraph: Fix tooltip positioning (#67938)

(cherry picked from commit 37de4a8)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
ryantxu pushed a commit that referenced this pull request May 16, 2023
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants