Added setMaxWidth docs. Fix #4997

This commit is contained in:
Richard Davey 2020-09-22 16:48:38 +01:00
parent 5a6dec237c
commit 6bf36083a8

View file

@ -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.
*