Skip to content

Commit

Permalink
fix: workspace shifts when deleting a block
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusslezinsky committed Nov 18, 2024
1 parent 9a7de53 commit dffa3dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/dragging/block_drag_strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ export class BlockDragStrategy implements IDragStrategy {
// Must dispose after connections are applied to not break the dynamic
// connections plugin. See #7859
this.connectionPreviewer!.dispose();
this.workspace.setResizesEnabled(true);

if (!this.inGroup) {
eventUtils.setGroup(false);
Expand Down
2 changes: 2 additions & 0 deletions core/dragging/dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export class Dragger implements IDragger {
eventUtils.setGroup(origGroup);
root.dispose();
eventUtils.setGroup(newGroup);
} else {
this.workspace.setResizesEnabled(true);
}
}

Expand Down

0 comments on commit dffa3dd

Please sign in to comment.