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/12/13 11:00:45 UTC
[GitHub] [incubator-echarts] plainheart commented on issue #13004: Multiple Charts Will Grow but Not Shrink In A Grid
plainheart commented on issue #13004:
URL: https://github.com/apache/incubator-echarts/issues/13004#issuecomment-743989430
@bryandam @anguiao
Hi, I now think the reason why ECharts cannot calculate a correct height after the height of the window decreases is that the previous height value has been set on the root DOM of ECharts instance but not the default `'auto'`(the specified value will affect the height of its parent DOM).
So I suppose we should hide the DOM first before resizing and then restore the visibility after the chart resizes.
This way can probably resolve this issue.
Take a try with this demo: https://codepen.io/plainheart/pen/VwKPzpj
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org