diff --git a/src/core/text/Text.js b/src/core/text/Text.js index 0c35dc0..404f59e 100644 --- a/src/core/text/Text.js +++ b/src/core/text/Text.js @@ -606,7 +606,7 @@ { this.updateText(true); - return Math.abs(this.scale.x) * this.texture.orig.width; + return Math.abs(this.scale.x) * this._texture.orig.width; } /** @@ -620,7 +620,7 @@ const s = sign(this.scale.x) || 1; - this.scale.x = s * value / this.texture.orig.width; + this.scale.x = s * value / this._texture.orig.width; this._width = value; } @@ -648,7 +648,7 @@ const s = sign(this.scale.y) || 1; - this.scale.y = s * value / this.texture.orig.height; + this.scale.y = s * value / this._texture.orig.height; this._height = value; }