GoJS not rendering the nodes at the specified locations

I can go by without having a layout in the first place, but I couldnt find an option for setting the size for nodes in the templates themselves.

There is a single layout file as I have shared above, which only creates the parts of the specified sizes. There are 3 templates, one is for the nodes, and 2 for the groups.

The first group template is for the expanded groups, and I have it as expanded by defining the isSubGraphExpanded set to true, while the other one is for the collapsed group with isSubGraphExpanded set to false.

Ohk, I figured it out. Setting the desiredSize & position through the custom layout was problematic. Setting the same in the templates worked.

I think, if people want a manual control over the sizing of nodes and it can change dynamically with user actions in the canvas, they should be using templates for it, and not the layout.