I am adjusting and example definition that @edsahergom created for the Fall ‘24 Webinar. I removed the option to add boxes on top of one another (linear progression only) and changed the default shape and allowed the only new parameter to be the “Width”.
But, now I have an issue when adjusting the “width” of individual boxes. When I add new boxes in a row and then change the “Width” of one, the rest do not ‘snap’ to the surroundings. See Below:
The problem in your script is that you are using the position before the new lengths are changed from the JSON state. Since you want to keep one element after the other, you can use their lengths after they are replaced with the new ones. Here is the solution:
Can you please share a link to this definition with your “solution".” When I try to recreate I am met with a new version of the error where things snap but snap incorrectly.