fix layout child anchor change issue.

1. fix base-node getBoundingBox issue
This commit is contained in:
zilongshanren
2015-12-29 21:21:21 +08:00
parent 56f6c329fd
commit c4b48a4c89
2 changed files with 3 additions and 4 deletions
+2 -4
View File
@@ -887,10 +887,8 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
* @return {Rect} The calculated bounding box of the node
*/
getBoundingBox: function () {
var boundingBox = this._sgNode.getBoundingBox();
boundingBox.width = this._contentSize.width;
boundingBox.height = this._contentSize.height;
return boundingBox;
var rect = cc.rect(0, 0, this._contentSize.width, this._contentSize.height);
return cc._rectApplyAffineTransformIn(rect, this.getNodeToParentTransform());
},
/**