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

Set position: relative to the container if position: static #1776

Closed
maxkfranz opened this issue Apr 12, 2017 · 0 comments
Closed

Set position: relative to the container if position: static #1776

maxkfranz opened this issue Apr 12, 2017 · 0 comments
Assignees
Milestone

Comments

@maxkfranz
Copy link
Member

maxkfranz commented Apr 12, 2017

This makes it easier for extension writers to absolutely position elements within the Cytoscape div.

The position is set using an inline stylesheet prepended to the document head. It uses the __________cytoscape_container class to try to avoid collisions with user-set classes. In this way, properties set in the style attribute still take effect and most selectors in the user's stylesheet would allow for overriding the inline stylesheet.

A message with a stacktrace is printed to the console if somehow the div ends up being position: static.

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

No branches or pull requests

1 participant