From f1c9a2a65357a7ed45c915dbdb6e5b3f11b551c4 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Mon, 30 Oct 2017 16:28:33 +0800 Subject: [PATCH] fix: https://github.com/ant-design/ant-design-pro/pull/39 --- src/components/Charts/Radar/index.js | 2 +- src/routes/Dashboard/Workplace.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Charts/Radar/index.js b/src/components/Charts/Radar/index.js index b3c1afcf..8f338bc5 100644 --- a/src/components/Charts/Radar/index.js +++ b/src/components/Charts/Radar/index.js @@ -69,7 +69,7 @@ class Radar extends PureComponent { const chart = new G2.Chart({ container: this.node, forceFit: fit, - height: height - 22, + height: height - (hasLegend ? 80 : 22), plotCfg: { margin, }, diff --git a/src/routes/Dashboard/Workplace.js b/src/routes/Dashboard/Workplace.js index 71964fd2..bd819f1a 100644 --- a/src/routes/Dashboard/Workplace.js +++ b/src/routes/Dashboard/Workplace.js @@ -241,7 +241,7 @@ export default class Workplace extends PureComponent { loading={radarData.length === 0} >
- +