You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cytoscape.js version : It seems like it exists for a long time.
Browser/Node.js & version : Google Chrome 87.0.4280.88 (32-bit version)
Current (buggy) behaviour
Assume that we have two nested compound nodes. If we give the parent one before the child in the node list while creating the graph, then layouts don't fit to the canvas when animate option is set to true or end (animation from the initial positions to the end positions). As far as I know, there is no condition on the order of giving nodes in Cytoscape.js.
I prepared a jsbin demo here to reproduce the bug using the random layout, but it also exists in other layouts such as cose, cose-bilkent and fcose etc. If you change the order of c1 and c2 nodes in the node array or set animate to false, then it starts to fit.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.
Environment info
Current (buggy) behaviour
Assume that we have two nested compound nodes. If we give the parent one before the child in the node list while creating the graph, then layouts don't fit to the canvas when animate option is set to true or end (animation from the initial positions to the end positions). As far as I know, there is no condition on the order of giving nodes in Cytoscape.js.
I prepared a jsbin demo here to reproduce the bug using the random layout, but it also exists in other layouts such as cose, cose-bilkent and fcose etc. If you change the order of c1 and c2 nodes in the node array or set animate to false, then it starts to fit.
The text was updated successfully, but these errors were encountered: