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: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.

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

results matching ""

    No results matching ""