Resizing changes the layout and clips the content

I have a “nodeTemplate” that as soon as the resizing starts loses its layout and is clipped from the right and bottom side. See the attached video. Any pointer as to how to fix this is appreciated.

Here’s the code in codesandbox
Here’s the screencast

Screenshot 2023-07-13 at 6.31.54 PM

I only briefly got to see a little bit of the code before the sandbox crashed my browser. But my first guess is the you need to give the first/main element of your “Spot” Panel a name and set Part.resizeObjectName to that name.

Thanks @walter, I put the resizeObjectName: "box" on the node and gave the inner rectangle name: "box" and it worked.