Closed pranshuagrawal closed 7 years ago
You can't, size computations cannot be done on display:none elements because the browser remove them from the render stack and thus they have no size.
The only thing you can do is visibility:hidden (combined with a position:absolute or a float to remove it from the flow and to not alter your display).
But I don't really understand why you want to to that, just initialize the cloud when needed.
How can I build a wordcloud on a hidden element so that when I switch its display to blcok it should just appears to be a normal wordcloud?