Skip to content

Commit

Permalink
refactor(#328): traverseMovedNode 메서드에 있는 arrageNode를 moveNode 메서드로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hegleB committed Mar 29, 2024
1 parent 8120059 commit 07f3e8b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class NodeView(
traverseMovedNode(tree.getRootNode(), selectedNode, dx, dy)

mindMapContainer.update(tree)
rightLayoutManager.arrangeNode(tree, selectedNode as RectangleNode)
}
lineView.updateTree(tree)
invalidate()
Expand All @@ -158,8 +159,6 @@ class NodeView(
val centerY = Dp(Px(dy).toDp(context))
tree.updateNode(target.id, target.description, target.children, centerX, centerY)
}
rightLayoutManager.arrangeNode(tree, target as RectangleNode)

node.children.forEach { nodeId ->
traverseMovedNode(tree.getNode(nodeId), target, dx, dy)
}
Expand Down

0 comments on commit 07f3e8b

Please sign in to comment.