diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 58b8fee455..b8e13394fb 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -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(); + } + } } },