From 48b492ddd0f4ed17ff6fdf3c840c1f9a6aed0a9b Mon Sep 17 00:00:00 2001 From: yotamberk Date: Thu, 13 Oct 2016 12:04:48 +0300 Subject: [PATCH] Rtl documentation (#2141) * Hide vertically hidden ranged items in groups that are not visible * Add rtl to timeline options docs * Fix misspelling * Update RangeItem.js --- docs/timeline/index.html | 6 ++++++ lib/timeline/component/Group.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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)