Skip to content

Commit 7992924

Browse files
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.
1 parent c944049 commit 7992924

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/bitmaptext/static/BitmapText.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ var BitmapText = new Class({
340340
{
341341
this._text = value.toString();
342342

343-
this.updateDisplayOrigin();
344-
345343
this._dirty = true;
344+
345+
this.updateDisplayOrigin();
346346
}
347347

348348
return this;

0 commit comments

Comments
 (0)