Skip to content

Commit a7b3cd5

Browse files
committed
Tidying up
1 parent 0d46c71 commit a7b3cd5

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/gameobjects/bitmaptext/static/BitmapText.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ var BitmapText = new Class({
111111
*/
112112
this.fontData = entry.data;
113113

114-
/**
115-
* @property {number} _maxWidth - Internal cache var.
116-
* @private
117-
* @since 3.21.0
118-
*/
119-
this._maxWidth = 0;
120-
121114
/**
122115
* The text that this Bitmap Text object displays.
123116
*
@@ -178,7 +171,7 @@ var BitmapText = new Class({
178171
* @private
179172
* @since 3.0.0
180173
*/
181-
this._bounds = GetBitmapTextSize(this, false, this._bounds);
174+
this._bounds = GetBitmapTextSize();
182175

183176
/**
184177
* An internal dirty flag for bounds calculation.
@@ -188,7 +181,17 @@ var BitmapText = new Class({
188181
* @private
189182
* @since 3.11.0
190183
*/
191-
this._dirty = false;
184+
this._dirty = true;
185+
186+
/**
187+
* Internal cache var holding the maxWidth.
188+
*
189+
* @name Phaser.GameObjects.BitmapText#_maxWidth
190+
* @type {number}
191+
* @private
192+
* @since 3.21.0
193+
*/
194+
this._maxWidth = 0;
192195

193196
/**
194197
* The character code used to detect for word wrapping.

0 commit comments

Comments
 (0)