Blocks Layout becomes stacked

I often toggle between Blocks and Javascript view.

Originally, going back to Blocks view would change the layout in a reasonable spread-out view.
After creating more Functions, going back to Blocks view started stacking all the Functions in one place.

It is getting hard to manage.

Is there a ticket to manage the layout of the blocks so that it is maintained when toggling the views? I understand some design decisions have to be made in case some new Functions are created on the Javascript side, and deciding where to place them in the Blocks view. But this is starting to be a pain point.

What do others do to work around this? Just stay in Javascript view?


1 Like

this is a good question

i have also been having this problem and i just try to cut down on the amount of functions i have i don’t really have an answer


I also have the same problem too.

Maybe the problem is that when you open that javascript editor, it changes the blocks file?

Could you share a program that reproduces the error? We are currently working on collapse/expand of functions and we can look into this.

Collapse All / Expand All options ->

Just edited ptx.json and this happened after switching back to blocks.

Oh, I believe this is a bug on our end that’s been fixed but not yet released in Arcade (relevant issue: If you try switching between Blocks -> JS on, does the stacking still happen?

No, but it still kind of ruins the layout

1/4 of the items were untouched.
(BTW, the only file I edited while in JS mode was pxt.json, so I could change the description and version numbers)

1 Like

Yeah, fair point! I dug around and we have an older issue tracking that I’ve linked this forum post for reference, but feel free to add any additional details.

T̶h̶e̶ ̶l̶i̶n̶k̶ ̶s̶e̶e̶m̶s̶ ̶t̶o̶ ̶b̶e̶ ̶b̶r̶o̶k̶e̶n̶ ̶-̶ ̶G̶i̶t̶h̶u̶b̶ ̶c̶a̶n̶’̶t̶ ̶f̶i̶n̶d̶ ̶t̶h̶e̶ ̶i̶s̶s̶u̶e̶

There is any extra semicolon in the link

i have an idea (will most likely not work)

just have a muti function and say if this var is true do this and more of that so when you need to call any function you call one and set the var you want to true

this will most likely not work cuz you can add other items to functions


Wouldn’t that defeat the purpose of a function?

you are 100% correct and i have no defense


I totally agree with this post. I switch to javascript to check what the block code has produced, and also debug the application. When I switch back, all my functions, that were rearranged with meticulous energy, have move to a different location. It is very frustrating and makes it hard to find your code.

1 Like