Skip to content

Commit f20e5e0

Browse files
author
Michael Johnston
committed
Merge pull request Flipboard#41 from mbrgm/master
Fix parent position when walking child nodes
2 parents ae41e0f + 9144e95 commit f20e5e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/layoutNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function walkNode (node, parentLeft, parentTop) {
3737
node.layer.frame.height = node.layout.height;
3838
if (node.children && node.children.length > 0) {
3939
node.children.forEach(function (child) {
40-
walkNode(child, node.layout.left, node.layout.top);
40+
walkNode(child, node.layer.frame.x, node.layer.frame.y);
4141
});
4242
}
4343
}

0 commit comments

Comments
 (0)