From 7992924aaeabfb5a5933b25f9c009f2fa1c549fe Mon Sep 17 00:00:00 2001 From: TadejZupancic Date: Tue, 14 Aug 2018 12:15:59 +0200 Subject: [PATCH] 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. --- src/gameobjects/bitmaptext/static/BitmapText.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gameobjects/bitmaptext/static/BitmapText.js b/src/gameobjects/bitmaptext/static/BitmapText.js index 41afc8e5c..1b45a788c 100644 --- a/src/gameobjects/bitmaptext/static/BitmapText.js +++ b/src/gameobjects/bitmaptext/static/BitmapText.js @@ -340,9 +340,9 @@ var BitmapText = new Class({ { this._text = value.toString(); - this.updateDisplayOrigin(); - this._dirty = true; + + this.updateDisplayOrigin(); } return this;