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

react-graph-vis Graph redraw nodes and edges in dragging

ToeToeAung opened this issue · comments

When I used the react-graph-vis in reactjs, the graph redraw nodes and edges in dragging.
Please see the screen here. Why it is happening? Right side of the graph canvas. How to remove that area?
image

style="position: relative; touch-action: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%; height: 100%;

In this canvas style, the extra are the below

-webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%; height: 100%;. How to remove it?

I have changed the width using 'px' in graph's options and it was resolved.