Skip to content

Commit

Permalink
Fix tabbing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurph211 committed Dec 20, 2012
1 parent deb2ee5 commit d349f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/excanvas2.js
Expand Up @@ -511,8 +511,8 @@

// Ensure proper text alignment:
textAlign = (/^left|center|right$/.test(textAlign)) ? textAlign :
(textAlign === "end") ? ((cStyle.direction == "ltr") ? "right" : "left") :
(textAlign === "start") ? ((cStyle.direction == "rtl") ? "right" : "left") : "left";
(textAlign === "end") ? ((cStyle.direction == "ltr") ? "right" : "left") :
(textAlign === "start") ? ((cStyle.direction == "rtl") ? "right" : "left") : "left";
range = {};
range.left = { "center" : 500, "right" : 1000 }[textAlign] || 0;
range.right = { "center" : 500, "right" : 0.05 }[textAlign] || 1000;
Expand Down

0 comments on commit d349f2d

Please sign in to comment.