Skip to content

Commit

Permalink
fix(core): remove height and width requirement on SuperChart (#1176)
Browse files Browse the repository at this point in the history
* fix(core): remove height and width requirement on SuperChart

* simply by removing state
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 26, 2021
1 parent 130e8a0 commit 1bd2ff6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ export default class SuperChart extends React.PureComponent<Props, {}> {
<BoundingBox>
<ParentSize debounceTime={debounceTime}>
{({ width, height }) =>
width > 0 &&
height > 0 &&
this.renderChart(
widthInfo.isDynamic ? Math.floor(width) : widthInfo.value,
heightInfo.isDynamic ? Math.floor(height) : heightInfo.value,
Expand Down

0 comments on commit 1bd2ff6

Please sign in to comment.