crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window Resizing Issue

zromick opened this issue · comments

When resizing the window , nodes often become oval and a trace of the image is left in some areas of the screen when dragging the nodes around (when going from a larger window view to a smaller window view).

I attempted to use resize-observer-polyfill to resize nodes appropriately based on window height and width, but I'm still getting this weird issue. Anyone know why?

Here's documentation I found on autoResizing:

Name Type Default Description
autoResize Boolean true If true, the Network will automatically detect when its container is resized, and redraw itself accordingly. If false, the Network can be forced to repaint after its container has been resized using the function redraw() and setSize().

Oddly, the default was not applied to my options and I needed to override them with autoResize: true. Closing the issue.