Skip to content

Commit cee5e2a

Browse files
committed
Merge pull request phaserjs#1261 from spayton/dev
Texture width is recalculated larger on subsequent call to updateText() ...
2 parents 84d6b16 + a942a03 commit cee5e2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/Text.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Phaser.Text.prototype.updateText = function () {
379379

380380
var width = maxLineWidth + this.style.strokeThickness;
381381

382-
this.canvas.width = (width + this.context.lineWidth) * this.resolution;
382+
this.canvas.width = width * this.resolution;
383383

384384
//calculate text height
385385
var lineHeight = fontProperties.fontSize + this.style.strokeThickness;

0 commit comments

Comments
 (0)