Skip to content

Commit

Permalink
fix: point item in rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamberk committed Nov 9, 2019
1 parent 7bd9baa commit aa68637
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/timeline/component/item/PointItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,10 @@ class PointItem extends Item {
repositionX() {
const start = this.conversion.toScreen(this.data.start);

this.pointX = start;
if (this.options.rtl) {
this.pointX = start - this.width;
this.right = (start - this.props.dot.width) * -1;
this.right = start - this.props.dot.width;
} else {
this.pointX = start;
this.left = start - this.props.dot.width;
}

Expand Down

0 comments on commit aa68637

Please sign in to comment.