Browse Source

Fixed #1521: Prevent items from staying stuck to the left side of the viewport.

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

+ 1
- 0
HISTORY.md View File

@ -17,6 +17,7 @@ http://visjs.org
### Timeline
- Fixed #1521: Prevent items from staying stuck to the left side of the viewport.
- Fixed #1592: Emit a "changed" event after each redraw.
### Graph2d

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

@ -405,6 +405,7 @@ Timeline.prototype.getItemRange = function () {
// calculate the date of the left side and right side of the items given
util.forEach(this.itemSet.items, function (item) {
item.show();
item.repositionX();
var start = getStart(item);
var end = getEnd(item);

Loading…
Cancel
Save