We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8452fa0 commit e4595d2Copy full SHA for e4595d2
2 files changed
src/gameobjects/BitmapText.js
@@ -80,6 +80,9 @@ Phaser.BitmapText.prototype.update = function() {
80
this._cache.dirty = true;
81
}
82
83
+ this.pivot.x = this.anchor.x*this.width;
84
+ this.pivot.y = this.anchor.y*this.height;
85
+
86
87
88
Object.defineProperty(Phaser.BitmapText.prototype, 'angle', {
src/pixi/text/BitmapText.js
@@ -135,7 +135,7 @@ PIXI.BitmapText.prototype.updateText = function()
135
this.addChild(c);
136
137
138
- this.width = pos.x * scale;
+ this.width = maxLineWidth * scale;
139
this.height = (pos.y + data.lineHeight) * scale;
140
};
141
0 commit comments