Skip to content

Commit 66571c4

Browse files
committed
Merge pull request #563 from crmagicxxx/CCLayoutBox
CCLayoutBox incorrectly positions children in vertical direction Former-commit-id: 81a14b5
2 parents 138ae8b + 9f58d3f commit 66571c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCLayoutBox.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ - (void) layout
8484

8585
// Position the nodes
8686
float height = 0;
87-
for (CCNode* child in self.children)
87+
for (CCNode* child in [[self.children reverseObjectEnumerator] allObjects])
8888
{
8989
CGSize childSize = child.contentSizeInPoints;
9090

0 commit comments

Comments
 (0)