mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fixed layout
This commit is contained in:
@@ -765,10 +765,10 @@ var Layout = cc.Class({
|
||||
});
|
||||
|
||||
if (allChildrenBoundingBox) {
|
||||
var leftBottomInParentSpace = this.node.parent.convertToNodeSpace(cc.p(allChildrenBoundingBox.x, allChildrenBoundingBox.y));
|
||||
var leftBottomInParentSpace = this.node.parent.convertToNodeSpaceAR(cc.p(allChildrenBoundingBox.x, allChildrenBoundingBox.y));
|
||||
leftBottomInParentSpace = cc.pAdd(leftBottomInParentSpace, cc.p(-this.paddingLeft, -this.paddingBottom));
|
||||
|
||||
var rightTopInParentSpace = this.node.parent.convertToNodeSpace(cc.p(allChildrenBoundingBox.x + allChildrenBoundingBox.width,
|
||||
var rightTopInParentSpace = this.node.parent.convertToNodeSpaceAR(cc.p(allChildrenBoundingBox.x + allChildrenBoundingBox.width,
|
||||
allChildrenBoundingBox.y + allChildrenBoundingBox.height));
|
||||
rightTopInParentSpace = cc.pAdd(rightTopInParentSpace, cc.p(this.paddingRight, this.paddingTop));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user