nsftx / chameleon-bundle-material

Material Bundle for Chameleon applications
https://chameleon.nsoft.com
6 stars 1 forks source link

Lazy load tab item children nsftx/chameleon-bundle-charts#8 #247

Closed Lanchi closed 5 years ago

Lanchi commented 5 years ago

Tab items render their children on first load and hide them (with display: none) until tab is activated. This causes that children components, like charts, get rendered without any dimensions. Solution is to load tab item children only when tab is activated and has its dimensions. After the initial render of each tab item content, keep it rendered, no need to omit rendering when tab is not active.

Related to nsftx/chameleon-bundle-charts#8