hustcc / hustcc/echarts-for-react

resize在父组件宽高发生变化的时候不会执行

Open
#542 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5k
Forks
650
PR merge metrics
No merged PRs in 30d

Description

我的场景是让Echarts组件随着父容器的宽高变化而变化,所以设置了Echarts的style的宽高都是100%,但是这样一来测试发现即便是父容器的宽高发生了变化,但是Echarts组件并不会重新resize。

```js

// 这里的width, height可能会随着浏览器窗口的改变而改变


```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.