strokeText bugfix for Firefox < 4

This commit is contained in:
Kienz 2012-12-14 18:31:01 +01:00
parent 564e37eb5f
commit aefa280bb3

View file

@ -395,6 +395,7 @@
*/
_renderTextStroke: function(ctx, textLines) {
if (this.strokeStyle) {
ctx.beginPath();
for (var i = 0, len = textLines.length; i < len; i++) {
ctx.strokeText(
textLines[i],
@ -402,6 +403,7 @@
(-this.height / 2) + (i * this.fontSize * this.lineHeight) + this.fontSize
);
}
ctx.closePath();
}
},