mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
fix(core): remove height and width requirement on SuperChart (#1176)
* fix(core): remove height and width requirement on SuperChart * simply by removing state
This commit is contained in:
committed by
Yongjie Zhao
parent
130e8a0214
commit
1bd2ff6abd
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user