Skip to content

Commit

Permalink
Fixed issue almende#346 (Timeline start and end options are not taken…
Browse files Browse the repository at this point in the history
… into account)
  • Loading branch information
ova2 committed Jun 10, 2015
1 parent 1a323c4 commit e08804b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/src/timeline/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

/**
Expand Down

0 comments on commit e08804b

Please sign in to comment.