From a6ff28f38b09d6248a287e05396eabc89c7c0a46 Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 7 Nov 2014 15:45:59 +0100 Subject: [PATCH] Fixed an issue with graphHeight in Graph2d --- lib/timeline/component/LineGraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index 9d55bdee..53b85db1 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -191,7 +191,7 @@ LineGraph.prototype.setOptions = function(options) { this.autoSizeSVG = true; } else if (this.body.domProps.centerContainer.height !== undefined && options.graphHeight !== undefined) { - if (parseInt(options.graphHeight.replace("px",'')) < this.body.domProps.centerContainer.height) { + if (parseInt((options.graphHeight + '').replace("px",'')) < this.body.domProps.centerContainer.height) { this.autoSizeSVG = true; } }