Closed
Description
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.