From e90ba4313f5fa6286a1f61b0458b219c521dfaf3 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Thu, 17 Aug 2017 17:32:11 +0800 Subject: [PATCH] Modify the _updateNodeSize timing for fireball/issues/6263 --- cocos2d/core/components/CCLabel.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 250de3da11..7da167c676 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -494,10 +494,6 @@ var Label = cc.Class({ this._sgNode.on('load', this._updateNodeSize, this); } - }, - - onEnable: function () { - this._super(); this._updateNodeSize(); },