Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cytoscape.js-cola layout is not spanning the entire width of a bootstrap card #314

Open
wasimaftab opened this issue Jan 30, 2021 · 3 comments

Comments

@wasimaftab
Copy link

wasimaftab commented Jan 30, 2021

I am using cola layout to render a Cytoscape graph inside a bootstrap card element in an electron app. However, the graph mostly tries to span vertically and in spite of having plenty of spaces in the horizontal direction, it does not span there. Because of this, the node labels become completely illegible. See the screenshot below. I had open this issue earlier in the issue tracker of cytoscape.js-cola (cytoscape/cytoscape.js-cola#52), where I provided an electron gist to reproduce this issue with [email protected] and [email protected]. However, @maxkfranz asked me to open an issue here with a minimal reproducible example but without Electron. Therefore, I have created the following gist:
https://gist.github.com/wasimaftab/50b894de4644f820fff5fb2b58cc4016
In this gist, I am using [email protected] and [email protected].
To reproduce the issue open the index.html file in Chrome/Firefox and click Show button.

cola-issue

@StoltHD
Copy link

StoltHD commented Feb 14, 2021

You are not the only one with this problem...

I'm testing out another Electron software that has the exact same problem.
It render the first part of a graph alright, but what should appear as "sub-graphs" for new segments of the graph render just like that, so I get 3-4 "Towers" of graphs side by side, rendered way outside the viewpoint while there are huge amount of free space in the actual visible area.

@wasimaftab
Copy link
Author

wasimaftab commented Feb 14, 2021

You are not the only one with this problem...

I'm testing out another Electron software that has the exact same problem.
It render the first part of a graph alright, but what should appear as "sub-graphs" for new segments of the graph render just like that, so I get 3-4 "Towers" of graphs side by side, rendered way outside the viewpoint while there are huge amount of free space in the actual visible area.

It seems to be related to cola only. Because I tested with and without Electron and found the same bug.

@StoltHD
Copy link

StoltHD commented Feb 17, 2021

t seems to be related to cola only. Because I tested with and without Electron and found the same bug.

Yes, it is the cola library, the developer of the plug-in I use changed to a different layout library and the graph rendered as it should...
I just wanted to give you my support on this issue... Hopefully the developer are active and chose to do something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants