diff --git a/HISTORY.md b/HISTORY.md index 32d3472b..d83e25e8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/lib/timeline/Timeline.js b/lib/timeline/Timeline.js index a31fe51b..3c919d2e 100644 --- a/lib/timeline/Timeline.js +++ b/lib/timeline/Timeline.js @@ -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);