Browse Source

Merge pull request #966 from mschallar/master

Core.prototype.fit and Core.prototype.getDataRange fixes
flowchartTest
Jos de Jong 9 years ago
parent
commit
c5c221dfc2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/timeline/Core.js

+ 3
- 3
lib/timeline/Core.js View File

@ -459,7 +459,7 @@ Core.prototype.getVisibleItems = function() {
Core.prototype.fit = function(options) { Core.prototype.fit = function(options) {
var range = this.getDataRange(); var range = this.getDataRange();
// skip range set if there is no start and end date
// skip range set if there is no min and max date
if (range.min === null && range.max === null) { if (range.min === null && range.max === null) {
return; return;
} }
@ -496,8 +496,8 @@ Core.prototype.getDataRange = function() {
} }
return { return {
start: null,
end: null
min: start,
max: end
} }
}; };

Loading…
Cancel
Save