We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66d216a commit 81275a6Copy full SHA for 81275a6
1 file changed
v3/src/gameobjects/text/static/Text.js
@@ -306,11 +306,6 @@ var Text = new Class({
306
var w = textSize.width + padding.left + padding.right;
307
var h = textSize.height + padding.top + padding.bottom;
308
309
- // console.log(textSize);
310
- // console.log(padding);
311
- // console.log(w, 'x', h);
312
- // console.log('');
313
-
314
if (!style.fixedWidth)
315
{
316
this.width = w;
@@ -336,6 +331,8 @@ var Text = new Class({
336
331
context.clearRect(0, 0, w, h);
337
332
}
338
333
334
+ context.save();
335
+
339
if (style.backgroundColor)
340
341
context.fillStyle = style.backgroundColor;
@@ -397,6 +394,8 @@ var Text = new Class({
397
394
398
395
399
396
+ context.restore();
400
this.dirty = true;
401
402
return this;
0 commit comments