Skip to content

Commit

Permalink
Merge pull request #5149 from systeminit/fix/move-components-inside-e…
Browse files Browse the repository at this point in the history
…xisting-parent

fix: allow moving components inside of their parents
  • Loading branch information
zacharyhamm authored Dec 17, 2024
2 parents ea97b19 + ee8d8b9 commit 3601b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/web/src/components/ModelingDiagram/ModelingDiagram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ function endDragElements() {

// do i need to resize the new parent to fit the children?
const parentSize = viewsStore.groups[newParent?.def.id || ""];
if (parentSize && newParent) {
if (parentSize && newParent && Object.values(setParents).length > 0) {
const newSize: Partial<Bounds> = {};
Object.values(setParents).forEach((el) => {
const geo =
Expand Down

0 comments on commit 3601b9a

Please sign in to comment.