Skip to content

Commit

Permalink
Fix a critical bug with the drawText position algo
Browse files Browse the repository at this point in the history
The bug was caused by a typo that appeared in f4a6fea while applying
some major style changes across the entire source.
  • Loading branch information
caleb531 committed Jun 30, 2017
1 parent 412386f commit 3a10de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/jcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -3747,7 +3747,7 @@ $.fn.drawText = function drawText(args) {
for (l = 0; l < lines.length; l += 1) {
line = lines[l];
// Add line offset to center point, but subtract some to center everything
y = (params.y + (l * params.height / lines.length) - ((lines.length - 1) * params.height / lines.length)) / 2;
y = params.y + (l * params.height / lines.length) - ((lines.length - 1) * params.height / lines.length) / 2;

ctx.shadowColor = params.shadowColor;

Expand Down

0 comments on commit 3a10de0

Please sign in to comment.