Commit 8109e146 authored by Ryan LeFevre's avatar Ryan LeFevre

Fix node group coords

parent aabb6de1
......@@ -75,7 +75,7 @@ module.exports = class Node extends Module
return if @isRoot()
nonEmptyChildren = @children.filter((c) -> not c.isEmpty())
@left = _.min(nonEmptyChildren.map((c) -> c.left)) or 0
@top = _.min(nonEmptyChildren.map((c) -> c.top)) or 0
@bottom = _.max(nonEmptyChildren.map((c) -> c.bottom)) or 0
@right = _.max(nonEmptyChildren.map((c) -> c.right)) or 0
\ No newline at end of file
@coords.left = _.min(nonEmptyChildren.map((c) -> c.left)) or 0
@coords.top = _.min(nonEmptyChildren.map((c) -> c.top)) or 0
@coords.bottom = _.max(nonEmptyChildren.map((c) -> c.bottom)) or 0
@coords.right = _.max(nonEmptyChildren.map((c) -> c.right)) or 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment