From 8ade29d9822209c785d28dbf0efb9663279d5ef0 Mon Sep 17 00:00:00 2001 From: "Josh Shepard (jcs)" Date: Sun, 8 Dec 2013 09:50:21 -0800 Subject: [PATCH] fix Pixi bug (#425) - fix incorrect width property for multi-line BitmapText (Pixi has already merged the fix) --- src/pixi/text/BitmapText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixi/text/BitmapText.js b/src/pixi/text/BitmapText.js index db4ec3b5..7dd15ee3 100644 --- a/src/pixi/text/BitmapText.js +++ b/src/pixi/text/BitmapText.js @@ -135,7 +135,7 @@ PIXI.BitmapText.prototype.updateText = function() this.addChild(c); } - this.width = pos.x * scale; + this.width = maxLineWidth * scale; this.height = (pos.y + data.lineHeight) * scale; };