diff --git a/cocos2d/core/base-nodes/CCSGNodeCanvasRenderCmd.js b/cocos2d/core/base-nodes/CCSGNodeCanvasRenderCmd.js index b7facce48e..0193f3c083 100644 --- a/cocos2d/core/base-nodes/CCSGNodeCanvasRenderCmd.js +++ b/cocos2d/core/base-nodes/CCSGNodeCanvasRenderCmd.js @@ -375,7 +375,7 @@ _ccsg.Node.RenderCmd.prototype = { if (transformDirty) //update the transform - this.transform(parentCmd, true); + this.transform(parentCmd); }, visitChildren: function(){ diff --git a/cocos2d/core/label/CCSGLabel.js b/cocos2d/core/label/CCSGLabel.js index 0367f9df57..cad94feee8 100644 --- a/cocos2d/core/label/CCSGLabel.js +++ b/cocos2d/core/label/CCSGLabel.js @@ -449,19 +449,19 @@ _ccsg.Label = _ccsg.Node.extend({ getContentSize: function() { if (!CC_EDITOR && !cc.sizeEqualToSize(this._contentSize, this._renderCmd._realRenderingSize)) { - this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.textDirty); + this._updateLabel(); } return _ccsg.Node.prototype.getContentSize.call(this); }, _getWidth: function () { if (!CC_EDITOR && !cc.sizeEqualToSize(this._contentSize, this._renderCmd._realRenderingSize)) { - this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.textDirty); + this._updateLabel(); } return _ccsg.Node.prototype._getWidth.call(this); }, _getHeight: function () { if (!CC_EDITOR && !cc.sizeEqualToSize(this._contentSize, this._renderCmd._realRenderingSize)) { - this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.textDirty); + this._updateLabel(); } return _ccsg.Node.prototype._getHeight.call(this); },