Label.Overflow
Enum
Enum for Overflow.
Index
NONE
CLAMP
SHRINK
RESIZE_HEIGHT
Details
NONE
NONE.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCLabel.js:86 |
CLAMP
In CLAMP mode, when label content goes out of the bounding box, it will be clipped.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCLabel.js:91 |
SHRINK
In SHRINK mode, the font size will change dynamically to adapt the content size. This mode may takes up more CPU resources when the label is refreshed.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCLabel.js:96 |
RESIZE_HEIGHT
In RESIZE_HEIGHT mode, you can only change the width of label and the height is changed automatically.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCLabel.js:101 |