Label.Overflow 枚举
模块: cc
Overflow 类型
索引
NONECLAMPSHRINKRESIZE_HEIGHT
Details
NONE
不做任何限制。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:80 |
CLAMP
CLAMP 模式中,当文本内容超出边界框时,多余的会被截断。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:85 |
SHRINK
SHRINK 模式,字体大小会动态变化,以适应内容大小。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:90 |
RESIZE_HEIGHT
在 RESIZE_HEIGHT 模式下,只能更改文本的宽度,高度是自动改变的。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:95 |