From 6bf36083a88df157933069e118de284cea927304 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 22 Sep 2020 16:48:38 +0100 Subject: [PATCH] Added `setMaxWidth` docs. Fix #4997 --- src/gameobjects/bitmaptext/static/BitmapText.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gameobjects/bitmaptext/static/BitmapText.js b/src/gameobjects/bitmaptext/static/BitmapText.js index 79f34d44c..35fea5bd3 100644 --- a/src/gameobjects/bitmaptext/static/BitmapText.js +++ b/src/gameobjects/bitmaptext/static/BitmapText.js @@ -771,6 +771,8 @@ var BitmapText = new Class({ /** * Sets the maximum display width of this BitmapText in pixels. * + * Note: This has no effect for Dynamic BitmapText. You should enforce max widths via your display callback. + * * If `BitmapText.text` is longer than `maxWidth` then the lines will be automatically wrapped * based on the previous whitespace character found in the line. *