Skip to content

ResizeSensor does not trigger if target element is hidden the shown back on #265

Closed
@martynasma

Description

@martynasma

If element starts off as display: hidden, then revealed by setting style.display = "block" the sensor triggers fine.

However, if element is initially visible, then hidden by setting style.display = "none", then shown back on style.display = "block", the sensor does not trigger.

This seems like an inconsistency, as in both cases actual size changed (since hidden elements do not have size).

Example:
https://codepen.io/team/amcharts/pen/9f21d956ae4391ef918c21670b62f806?editors=0010

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions