Fix box dimensions in PIXI.BitmapText. Support anchor in Phaser.BitmapText

This commit is contained in:
TheJare
2013-09-21 01:03:19 +01:00
parent 4b6147d3e3
commit a4bc69c2f7
2 changed files with 4 additions and 1 deletions
+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;
};