You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/01/14 07:37:17 UTC

[GitHub] [incubator-echarts] nuragic commented on issue #11791: Chart resize is not correct in some case of flex box layout.

nuragic commented on issue #11791: Chart resize is not correct in some case of flex box layout.
URL: https://github.com/apache/incubator-echarts/issues/11791#issuecomment-574044432
 
 
   Hello,
   
   I've also found a similar (or maybe the same) problem using a chart inside a flexbox layout.
   
   I have a layout that contains a left column, a central container, and a right column. Both left and right columns can be toggled on/off (show/hide); the central container is where the chart is rendered.
   
   What I've been observing is: the `width` property (dynamically created CSS rule of the chart container div) increase dynamically e.g. when I hide a column in my layout; however, it doesn't decrease e.g. when I show again the same column of my layout.
   
   If I remove the `witdh` property from the dynamically created CSS rule, then it's immediately recalculated by the JS and it actually have a right value! 🤷‍♂ 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org