From 1974c4ae1ab428d233fbe2fe40d1ae8a26fabb2e Mon Sep 17 00:00:00 2001 From: Stas Seliverstov Date: Fri, 28 Jul 2017 19:32:06 +0300 Subject: [PATCH] fix --- .../main/javascript/components/graph-base/BaseChartView.hbs | 2 +- .../main/javascript/components/graph-base/BaseChartView.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/allure-generator/src/main/javascript/components/graph-base/BaseChartView.hbs b/allure-generator/src/main/javascript/components/graph-base/BaseChartView.hbs index d46010fbb..ef0d73141 100644 --- a/allure-generator/src/main/javascript/components/graph-base/BaseChartView.hbs +++ b/allure-generator/src/main/javascript/components/graph-base/BaseChartView.hbs @@ -1,4 +1,4 @@ - + diff --git a/allure-generator/src/main/javascript/components/graph-base/BaseChartView.js b/allure-generator/src/main/javascript/components/graph-base/BaseChartView.js index 04bb80dd3..dc9e2ec06 100644 --- a/allure-generator/src/main/javascript/components/graph-base/BaseChartView.js +++ b/allure-generator/src/main/javascript/components/graph-base/BaseChartView.js @@ -30,10 +30,8 @@ export default class BaseChartView extends View { } setupViewport() { - this.viewBoxWidth = Math.floor(this.$el.outerWidth()); - this.viewBoxHeight = Math.floor(this.$el.outerHeight()); - this.width = this.viewBoxWidth - this.PAD_LEFT - this.PAD_RIGHT; - this.height = this.viewBoxHeight - this.PAD_BOTTOM - this.PAD_TOP; + this.width = Math.floor(this.$el.outerWidth()) - this.PAD_LEFT - this.PAD_RIGHT; + this.height = Math.floor(this.$el.outerHeight()) - this.PAD_BOTTOM - this.PAD_TOP; this.$el.html(template(this)); this.svg = select(this.$el[0]).select('.chart__svg'); this.plot = this.svg.select('.chart__plot');