You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When hovering a node of the flamegraph in the bottom right corner of my screen, the tooltip will be outside of the screen so the user cannot view it and the document's size will grow and scrollbars will be added to the window.
Reproduced on Desktop, but should occur on mobile as well (Chrome).
Expected behavior
Position the tooltip above the node instead of below it when hovering. Clamp the x coordinate to keep it inside the screen.
Additional context
The relevant logic seems to be here:
Describe the bug
When hovering a node of the flamegraph in the bottom right corner of my screen, the tooltip will be outside of the screen so the user cannot view it and the document's size will grow and scrollbars will be added to the window.
Reproduced on Desktop, but should occur on mobile as well (Chrome).
Expected behavior
Position the tooltip above the node instead of below it when hovering. Clamp the x coordinate to keep it inside the screen.
Additional context
The relevant logic seems to be here:
d3-flame-graph/src/tooltip.js
Lines 35 to 36 in ba6b2d0
A solution as proposed here could be implemented:
https://stackoverflow.com/a/28540519/13994294
Are you accepting PRs?
The text was updated successfully, but these errors were encountered: