Skip to content

Commit

Permalink
fix(fabric.Text): add the previous code as comment
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhossein92 authored and ShaMan123 committed Mar 10, 2022
1 parent b2d6dd9 commit 1ea2465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shapes/text.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,9 @@
path = this.path,
shortCut = !isJustify && this.charSpacing === 0 && this.isEmptyStyles(lineIndex) && !path,
isLtr = this.direction === 'ltr', sign = this.direction === 'ltr' ? 1 : -1,
drawingLeft, currentDirection = ctx.canvas.getAttribute('dir');
// this was changed in the PR #7674
// currentDirection = ctx.canvas.getAttribute('dir');
drawingLeft, currentDirection = ctx.direction;
ctx.save();
if (currentDirection !== this.direction) {
ctx.canvas.setAttribute('dir', isLtr ? 'ltr' : 'rtl');
Expand Down

0 comments on commit 1ea2465

Please sign in to comment.