Label.Overflow
Enum
Module: cc
Enum for Overflow.
Index
NONE
CLAMP
SHRINK
RESIZE_HEIGHT
Details
NONE
NONE.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:80 |
CLAMP
In CLAMP mode, when label content goes out of the bounding box, it will be clipped.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:85 |
SHRINK
In SHRINK mode, the font size will change dynamically to adapt the content size.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:90 |
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 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:95 |