Node/Group location not being bound

Is there a cycle necessary to satisfy in order to have location binding for nodes to work properly?

My binding for location works great the first time I create my diagram, but when I create a new diagram with the same model, everything except the location works perfectly. All attributes are added to the node at the same time, and all templates are being generated at the same time. I don’t understand why only the location is not being recognized.

Any thoughts?


  • Tim

Do you mean that when you set the Diagram.model on your second diagram it appears to lose the saved locations, even though there's a Binding on Node.location?

Have you set the Diagram.layout to be some Layout? If so, you probably want to set Layout.isInitial = false on that Layout, so that a layout is not performed after setting the Diagram.model. There’s more discussion at .