diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 484b794dde..250de3da11 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -489,11 +489,6 @@ var Label = cc.Class({ __preload: function () { this._super(); - var sgSizeInitialized = this._sgNode._isUseSystemFont; - if (sgSizeInitialized) { - this._updateNodeSize(); - } - // node should be resize whenever font changed, needed only on web if (!CC_JSB) { this._sgNode.on('load', this._updateNodeSize, this); @@ -501,6 +496,11 @@ var Label = cc.Class({ }, + onEnable: function () { + this._super(); + this._updateNodeSize(); + }, + _createSgNode: function () { return null; },