Browse Source

fixed breaking the timeline :)

v3_develop
Alex de Mulder 10 years ago
parent
commit
808c979e25
2 changed files with 2251 additions and 2251 deletions
  1. +2250
    -2250
      dist/vis.js
  2. +1
    -1
      lib/timeline/component/TimeAxis.js

+ 2250
- 2250
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/timeline/component/TimeAxis.js View File

@ -178,7 +178,7 @@ TimeAxis.prototype._repaintLabels = function () {
var start = util.convert(this.body.range.start, 'Number'); var start = util.convert(this.body.range.start, 'Number');
var end = util.convert(this.body.range.end, 'Number'); var end = util.convert(this.body.range.end, 'Number');
var timeLabelsize = this.body.util.toTime((this.props.minorCharWidth || 10) * 7).valueOf(); var timeLabelsize = this.body.util.toTime((this.props.minorCharWidth || 10) * 7).valueOf();
var minimumStep = DateUtil.getHiddenDurationBefore(this.body.hiddenDates, this.body.range, timeLabelsize);
var minimumStep = timeLabelsize - DateUtil.getHiddenDurationBefore(this.body.hiddenDates, this.body.range, timeLabelsize);
minimumStep -= this.body.util.toTime(0).valueOf(); minimumStep -= this.body.util.toTime(0).valueOf();

Loading…
Cancel
Save