visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.

Home Page:https://visjs.github.io/vis-network/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flexbox + auto-resize making canvas grow infinitely

radagasus opened this issue · comments

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?

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).