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

Add ResizeObserver to correctly size graph #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MasterCarl
Copy link

When using the examples, I had the problem that the graph was smaller than the box I had allocated in the existing Ant Design layout. Adding a ResizeObserver fixes this problem in Safari and Firefox.
Note that this requires a fixed container size to work correctly.

I also added some CSS for the minimap position right into index.html as a quick fix.

Add container to visualize
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

Successfully merging this pull request may close these issues.

1 participant