antvis / Graphin

A React toolkit for graph visualization based on G6
https://graphin.antv.antgroup.com
MIT License
980 stars 262 forks source link

Resizing causes the height to jump #499

Open wmcheung opened 10 months ago

wmcheung commented 10 months ago

Describe the bug

If you try and resize the screen you can see that the height does not remain the same or follows the parent box. Instead, the height keeps increasing bit by bit.

Your Example Website or App

https://codesandbox.io/s/upbeat-antonelli-z5lftg

Steps to Reproduce the Bug or Issue

  1. Go to the codesandbox url
  2. Drag back and forth the line between the code editor and the browser in codesandbox
  3. You will see the height jump more and more down

Expected behavior

As a user, I expect the height to remain the same when resizing.

Screenshots or Videos

No response

Platform

Additional context

No response