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

Make responsive component using vue-cytoscape #46

Open
pkovanen opened this issue Nov 25, 2019 · 1 comment
Open

Make responsive component using vue-cytoscape #46

pkovanen opened this issue Nov 25, 2019 · 1 comment

Comments

@pkovanen
Copy link

I'm trying to integrate vue-cytoscape into my application, but I'm having hard time getting the child component (based on vue-cytoscape) to be responsive. There are lots of different style related attributes in the DOM which cannot be configured, and I'm baffled.

The parent component is based on bootstrap. How can I make the child responsive?

@rcarcasses
Copy link
Owner

Hi @pkovanen , sorry for the late reply. Cytoscape is mounted in a div created here:

el.setAttribute('id', 'cytoscape-div')

which has a very basic styling as to work by default. I'm not sure how to make it responsive as per your need but I think a good start could be to target this DOM element with css:

#cytoscape-div {
...
}

Let me know if it helps.

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