diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/NOTICE b/NOTICE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/js/src/timeline/timeline.js b/js/src/timeline/timeline.js index 094765c..1cde3c7 100755 --- a/js/src/timeline/timeline.js +++ b/js/src/timeline/timeline.js @@ -667,8 +667,12 @@ links.Timeline.prototype.setVisibleChartRange = function(start, end, redraw) { * Change the visible chart range such that all items become visible */ links.Timeline.prototype.setVisibleChartRangeAuto = function() { - var range = this.getDataRange(true); - this.setVisibleChartRange(range.min, range.max); + if (this.options && (this.options.start || this.options.end)) { + this.setVisibleChartRange(this.options.start, this.options.end); + } else { + var range = this.getDataRange(true); + this.setVisibleChartRange(range.min, range.max); + } }; /**