NorthwoodsSoftware/GoJS

Animation not working when collapsing subgraph

ba2sik opened this issue · 4 comments

Hello,
If you look at this demo, when clicking + on Main1, the border/stroke around the items in the group, and the group header, is growing with animation, but when collapsing when clicking -, the stroke around the items and the header simply disappears, without doing it with animation.

Is it possible to override the closing animation somehow to make it work?

Thank you

?

Not easily. It might be possible to turn off that built-in animation and implement everything yourself.

This is not an issue (bug) in the library or samples or documentation, so this topic does not belong here.

Why is this not a bug?
When expanding the group the border around the nodes is growing, and when collapsing the border disappears instead of shrinking.
This is inconsistent behavior in the library...

Yes, that does appear to be inconsistent. However, that is how it was designed. I suppose an implementation alternative could be achieved by customizing the group's border computation to include not-visible member nodes during animation.