I‘m pretty sure that fit doesn't work well with huge amount of data using cytoscape.js-cose-bilkent.
I did the following tests : 1. cytoscape.js-cose-bilkent + cytoscape.js-expand-collapse and 2. cytoscape.js-cola + cytoscape.js-expand-collapse.
Load my huge amount of data, then expand and collapse some nodes, then watch the results.
2 with cola layout works well after each layout.
1 with cose-bilkent layout can't fit the screen sometimes, in that case the topology will zoom out very small , obviously not fit.
I posted my test data on comment. The screenshot shows the bug.
My data is so large that can't create a online demo. But it's easy to replace demo with my data.

I‘m pretty sure that
fitdoesn't work well with huge amount of data usingcytoscape.js-cose-bilkent.I did the following tests : 1.
cytoscape.js-cose-bilkent+ cytoscape.js-expand-collapse and 2. cytoscape.js-cola + cytoscape.js-expand-collapse.Load my huge amount of data, then expand and collapse some nodes, then watch the results.
2 with
colalayout works well after each layout.1 with
cose-bilkentlayout can't fit the screen sometimes, in that case the topology will zoom out very small , obviously not fit.I posted my test data on comment. The screenshot shows the bug.
My data is so large that can't create a online demo. But it's easy to replace demo with my data.