fix Pixi bug (#425) - fix incorrect width property for multi-line BitmapText

(Pixi has already merged the fix)
This commit is contained in:
Josh Shepard (jcs)
2013-12-08 09:50:21 -08:00
parent 74e0cfb13a
commit 8ade29d982
+1 -1
View File
@@ -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;
};