Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Rtl documentation #2141

Merged
merged 5 commits into from
Oct 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/timeline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,12 @@ <h2 id="Configuration_Options">Configuration Options</h2>
<td>Orientation of the timeline items: 'top' or 'bottom' (default). Determines whether items are aligned to the top or bottom of the Timeline.</td>
</tr>

<tr>
<td>rtl</td>
<td>boolean</td>
<td><code>false</code></td>
<td>If true, the timeline will be right-to-left.</td>
</tr>

<tr>
<td>selectable</td>
Expand Down
2 changes: 1 addition & 1 deletion lib/timeline/component/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down