We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c037e7d commit d942189Copy full SHA for d942189
1 file changed
core/workspace_svg.ts
@@ -1674,7 +1674,10 @@ export class WorkspaceSvg
1674
/** Clean up the workspace by ordering all the blocks in a column such that none overlap. */
1675
cleanUp() {
1676
this.setResizesEnabled(false);
1677
- eventUtils.setGroup(true);
+ const existingGroup = eventUtils.getGroup();
1678
+ if (!existingGroup) {
1679
+ eventUtils.setGroup(true);
1680
+ }
1681
1682
const topBlocks = this.getTopBlocks(true);
1683
const movableBlocks = topBlocks.filter((block) => block.isMovable());
@@ -1722,7 +1725,7 @@ export class WorkspaceSvg
1722
1725
block.getHeightWidth().height +
1723
1726
minBlockHeight;
1724
1727
}
- eventUtils.setGroup(false);
1728
+ eventUtils.setGroup(existingGroup);
1729
this.setResizesEnabled(true);
1730
1731
0 commit comments