Skip to content

[Bug] Tooltip is not removed nor set to display: none #17251

@MeMeMax

Description

@MeMeMax

Version

5.3.3

Link to Minimal Reproduction

https://jsfiddle.net/spxr6v1g/16/

Steps to Reproduce

  1. Go to the jsfiddle (https://jsfiddle.net/spxr6v1g/16/)
  2. Hover over the point with value 0
  3. Click on Button "change div size to 100px" WITHOUT crossing the chart again
  4. Notice the large scrollbar on the right -> this is due to the tooltip which is not removed or set to display: none but still floating invisibly at the bottom

Current Behavior

Notice that this is a very simple example. My application is much more complex and things have to be how they are.

Currently the tooltip is not removed from the dom nor set to display:none which causes an unnecessary scrollbar.

Expected Behavior

The tooltip should be removed at least when you call chartInstance.resize() as the chart might have become smaller than before.

Environment

- OS: Windows 10
- Browser: Chrome 99.0.4844.51
- Framework: Angular (but applies Framework independent)

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdiscussion-requiredFurther discussion is required before we decide if this issue should be fixed.enThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.topic: tooltip

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions