diff --git a/src/gameobjects/text/static/Text.js b/src/gameobjects/text/static/Text.js index cd16a8818..f4ceab17c 100644 --- a/src/gameobjects/text/static/Text.js +++ b/src/gameobjects/text/static/Text.js @@ -1129,6 +1129,11 @@ var Text = new Class({ else { this.width = style.fixedWidth; + + if (w > style.fixedWidth) + { + w = style.fixedWidth; + } } if (style.fixedHeight === 0) @@ -1138,6 +1143,11 @@ var Text = new Class({ else { this.height = style.fixedHeight; + + if (h > style.fixedHeight) + { + h = style.fixedHeight; + } } this.updateDisplayOrigin();