WorkspaceSvg.cleanUp() method doesn't account for immovable blocks #6889
Labels
component: coordinates
help wanted
External contributions actively solicited
issue: bug
Describes why the code or behaviour is wrong
Check for duplicates
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:blockly/core/workspace_svg.ts
Lines 1812 to 1830 in 4125fd3
This creates a situation where
cleanUp()
can actually make things look worse, covering up immovable blocks with movable ones.Reproduction steps
Blockly.selected.setMovable(false)
)Stack trace
No response
Screenshots
2023-03-09.08-16-55.2023-03-09.08_18_05.mp4
Browsers
No response
The text was updated successfully, but these errors were encountered: