diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 5fa25312..f11d1c89 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -895,6 +895,12 @@ function (option, path) { Orientation of the timeline items: 'top' or 'bottom' (default). Determines whether items are aligned to the top or bottom of the Timeline. + + rtl + boolean + false + If true, the timeline will be right-to-left. + selectable diff --git a/lib/timeline/component/Group.js b/lib/timeline/component/Group.js index 4cc70248..512fac58 100644 --- a/lib/timeline/component/Group.js +++ b/lib/timeline/component/Group.js @@ -180,7 +180,6 @@ Group.prototype.redraw = function(range, margin, restack) { // recalculate the height of the subgroups this._calculateSubGroupHeights(); - this.isVisible = this._isGroupVisible(range, margin); // reposition visible items vertically @@ -276,6 +275,7 @@ Group.prototype._calculateSubGroupHeights = function () { * check if group is visible * @private */ + Group.prototype._isGroupVisible = function (range, margin) { var isVisible = (this.top <= range.body.domProps.centerContainer.height - range.body.domProps.scrollTop + margin.axis)