Closed xiongchaohu closed 4 years ago
The positioning of nodes, if not done explicitly by the user or your code, is the responsibility of the Diagram.layout. You must not have assigned a layout, because normally changing the size of a node will invalidate the layout and cause it to be performed again at the end of the transaction.
So if you do not want an automatic layout by assigning Diagram.layout, you will need to move the nodes programmatically when you change "modes".
This is not a bug in GoJS but a question about how to use it which belongs in the forum, not in GitHub Issues.
Please do not use the GitHub issue tracker unless you are reporting a bug in GoJS, not a problem in your code nor a question about how to do something or use something.
For help and support, please use the GoJS forum: https://forum.nwoods.com/c/gojs
Now there is a problem. There are two modes: view mode and card mode can be switched, but the width and height of the node are inconsistent. For example, a new flow chart created in view mode will cause overlap when switching to card mode. Is there a way Can the node formatting in Diagram be automatically arranged without overlapping?