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/07/22 00:34:12 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-662175559
It seems to do with the `grid` layout. When the height of the chart grows and calls resize function, ECharts cannot calculate a new correct height. But I think there may be no need to use a single chart because it works well if not using `display: grid`.
For example, use the common default layout `display: block`.
```css
.container {
height: 100%;
margin-left: 1rem;
margin-right: 1rem;
font-size: 0;
}
.chart {
width: 50%;
height: 100%;
float: left;
/* left: 0;
top: 0; */
position: relative;
}
```
----------------------------------------------------------------
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