mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
add spacingX property to label component
This commit is contained in:
@@ -435,6 +435,16 @@ var Label = cc.Class({
|
||||
readonly: true,
|
||||
visible: true,
|
||||
animatable: false
|
||||
},
|
||||
|
||||
spacingX: {
|
||||
default: 0,
|
||||
notify: function() {
|
||||
if (this._sgNode) {
|
||||
this._sgNode.setSpacingX(this.spacingX);
|
||||
this._updateNodeSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user