Label.Overflow
Enum
Module: cc
Enum for Overflow.
Index
NONE
CLAMP
SHRINK
RESIZE_HEIGHT
Details
NONE
NONE.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/components/CCLabel.js:87 |
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:92 |
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:97 |
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:102 |