Skip to content

Track display none elements. #46

Closed
@vogdb

Description

@vogdb

Hi! If element is not displayed(has display: none) during the page construction then it will not get any updates from element-query even in case it is enabled by some user action (like elem.style.display = 'block').

Please look at http://jsbin.com/guwehadeti

The possible solution would be to set temporarily element.style.display = 'block' in ResizeSensor.attachResizeEvent before creating element.resizeSensor and restore it back at the end of the method. But I'm not sure about the correctness of such solution.

@marcj please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions