Block Overlap

108 views
Skip to first unread message

Erin Carvalho

unread,
Jun 1, 2021, 5:57:30 PM6/1/21
to Blockly
Hi All,

Just curious if there is some option or plugin for rearranging the blocks in the workspace so that they do not overlap. This would mostly be in the case of adding blocks within a statement block or some other type of starter block and it eventually overlaps other blocks that were already previously in the workspace.

Thanks,
Erin

Beka Westberg

unread,
Jun 2, 2021, 6:49:53 PM6/2/21
to blo...@googlegroups.com
Absolutely! You can do this `workspace.cleanUp()`. There is also a workspace context menu option associated with this, so end-users can do it =)

context-menu.png
Note that the Download Screenshot isn't included by default. That's just on the advanced playground for testing haha.

Best wishes,
--Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/c6056ee5-ab60-4476-bdf3-ddf70228cf90n%40googlegroups.com.

Erin Carvalho

unread,
Jun 3, 2021, 9:32:28 AM6/3/21
to Blockly
Thanks Beka! That's exactly what I was looking for!
Reply all
Reply to author
Forward
0 new messages