Browse Source

Fixed an issue with graphHeight in Graph2d

v3_develop
jos 9 years ago
parent
commit
a6ff28f38b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/LineGraph.js

+ 1
- 1
lib/timeline/component/LineGraph.js View File

@ -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;
}
}

Loading…
Cancel
Save