mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Wrong bounds/displayTextOrigin on BitmapText text change
updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
This commit is contained in:
parent
c94404986c
commit
7992924aae
1 changed files with 2 additions and 2 deletions
|
@ -340,9 +340,9 @@ var BitmapText = new Class({
|
|||
{
|
||||
this._text = value.toString();
|
||||
|
||||
this.updateDisplayOrigin();
|
||||
|
||||
this._dirty = true;
|
||||
|
||||
this.updateDisplayOrigin();
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Reference in a new issue