From 1bd2ff6abdfd1dfbc9829ae0626e4adade5fea6b Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Thu, 17 Jun 2021 09:31:07 +0300 Subject: [PATCH] fix(core): remove height and width requirement on SuperChart (#1176) * fix(core): remove height and width requirement on SuperChart * simply by removing state --- .../superset-ui-core/src/chart/components/SuperChart.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/chart/components/SuperChart.tsx b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/chart/components/SuperChart.tsx index 4cccc5ec586..acad3862025 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/chart/components/SuperChart.tsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/chart/components/SuperChart.tsx @@ -185,8 +185,6 @@ export default class SuperChart extends React.PureComponent { {({ width, height }) => - width > 0 && - height > 0 && this.renderChart( widthInfo.isDynamic ? Math.floor(width) : widthInfo.value, heightInfo.isDynamic ? Math.floor(height) : heightInfo.value,