add spacingX property to label component

This commit is contained in:
zilongshanren
2017-02-17 20:26:03 +08:00
parent a3e1c1d071
commit feebb86fbf
+10
View File
@@ -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();
}
}
}
},