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

Tooltip context menu does not stay open near bottom of window #2259

Open
3 tasks done
nickofthyme opened this issue Nov 27, 2023 · 1 comment
Open
3 tasks done

Tooltip context menu does not stay open near bottom of window #2259

nickofthyme opened this issue Nov 27, 2023 · 1 comment
Assignees
Labels
:all Applies to all chart types bug Something isn't working :tooltip Related to hover tooltip

Comments

@nickofthyme
Copy link
Collaborator

Describe the issue

When right clicking on a chart with tooltip actions, the tooltip attempts to render the tooltip as a pinned context menu but just flickers and continues to render unpinned tooltip.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/determined-tesla-3lyvy3?file=%2Fsrc%2FApp.tsx%3A26%2C44
  2. Right-click near bottom of chart, notice the chart flickers and the tooltip does not get pinned as expected.

Expected behaviour
Tooltip renders as pinned context menu with right click near bottom of page.

Screenshots

Screen Recording 2023-11-27 at 09 11 53 AM

Additional context
The pinned state does not change, it's set to true flickers and goes on thinking the tooltip is not pinned, then clicking out of the chart blurs the tooltip and sets pinned to false.

There is also a strange placement behavior seen in the gif above when you right click higher in the chart where the pinned tooltip is placed with the height of the longer tooltip rendered just prior. This behavior could be related to the problem.

Kibana Cross Issues

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)
  • Every related Kibana issue is listed under Kibana Cross Issues list and the kibana cross issue tag is applied
@markov00
Copy link
Member

We probably have to re-compute the tooltip placement when pinning it, I don't believe we are doing that today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:all Applies to all chart types bug Something isn't working :tooltip Related to hover tooltip
Projects
None yet
Development

No branches or pull requests

2 participants