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

Flexbox + auto-resize making canvas grow infinitely #2156

Open
radagasus opened this issue May 6, 2024 · 1 comment
Open

Flexbox + auto-resize making canvas grow infinitely #2156

radagasus opened this issue May 6, 2024 · 1 comment

Comments

@radagasus
Copy link

radagasus commented May 6, 2024

When trying to make a network container fill the remainder of a wrapper container using flexbox properties, whilst also using autoResize: true, the canvas on which the network is drawn keeps growing in height.
A minimal example can be found at https://codepen.io/radagasus/pen/zYXgjdN.
Anything I can do to fix this problem?

@radagasus
Copy link
Author

The temporary fix provided in this other issue can be tailored to my situation to fix the problem. This means no flex-box properties and dynamic resize of the network container based on resizing events (ResizeObserver).

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

1 participant