Lighthouse-io / react-visjs-timeline

React component for the vis.js timeline module
MIT License
210 stars 91 forks source link

Rendering the timeline while being down on the page makes me appear on top of it #57

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

First, thank you so much for this useful plugin.

But I'm facing this problem since I started using it.

Describe the bug Rendering the timeline while being (scrolled) down on the page makes me appear on top of it and it makes me unavailable to modify items at de bottom of the calendar. Please tell me if this comes from a mistake from me, or a known bug, or even if anyone already faced this problem.

To Reproduce My code is really to complexe to be put on a sandbox but steps are easy to reproduce :

Expected behavior Normal renderbehavior.

What actually happen The page scrolls up instantly to the top.

Desktop I'm using the last version of the lib, and I use Chrome 69.0.3497.100 (up to date) on Windows 10

ghost commented 6 years ago

If anyone else is having the same problem, I found that put a minHeight on the component can solve this. But for me there is still a bug, and this is just a messy trick.