-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
component: coordinateshelp wantedExternal contributions actively solicitedExternal contributions actively solicitedissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Description
If blocks are immovable when cleanUp() is called, they are skipped. Other blocks are moved into a column but ignoring any immovable blocks that might already be there: https://github.com/google/blockly/blob/4125fd31534dd9f450219259b9ccb3c1495605c9/core/workspace_svg.ts#L1812-L1830
This creates a situation where cleanUp() can actually make things look worse, covering up immovable blocks with movable ones.
Reproduction steps
- Add several blocks to the workspace.
- Set one or more blocks to be immovable (e.g.
Blockly.selected.setMovable(false)) - Select "Clean up blocks" from the workspace context menu.
Stack trace
No response
Screenshots
2023-03-09.08-16-55.2023-03-09.08_18_05.mp4
Browsers
No response
Metadata
Metadata
Assignees
Labels
component: coordinateshelp wantedExternal contributions actively solicitedExternal contributions actively solicitedissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
