Browse Source

Fix autoscale of timeline axis.

codeClimate
Ludo Stellingwerff 8 years ago
parent
commit
246de7f49a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/timeline/Timeline.js

+ 2
- 0
lib/timeline/Timeline.js View File

@ -218,6 +218,8 @@ Timeline.prototype.setItems = function(items) {
this.itemsData = newDataSet;
this.itemSet && this.itemSet.setItems(newDataSet);
this.body.emitter.emit("_change");
if (initialLoad) {
if (this.options.start != undefined || this.options.end != undefined) {
if (this.options.start == undefined || this.options.end == undefined) {

Loading…
Cancel
Save