File tree Expand file tree Collapse file tree
src/gameobjects/bitmaptext/static Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments