Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Fixed issue #346 (Timeline start and end options are not taken into account) #351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified NOTICE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
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