Skip to content

Commit 6bf3608

Browse files
committed
Added setMaxWidth docs. Fix phaserjs#4997
1 parent 5a6dec2 commit 6bf3608

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/bitmaptext/static/BitmapText.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ var BitmapText = new Class({
771771
/**
772772
* Sets the maximum display width of this BitmapText in pixels.
773773
*
774+
* Note: This has no effect for Dynamic BitmapText. You should enforce max widths via your display callback.
775+
*
774776
* If `BitmapText.text` is longer than `maxWidth` then the lines will be automatically wrapped
775777
* based on the previous whitespace character found in the line.
776778
*

0 commit comments

Comments
 (0)