react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Scroll to dynamic elements in an overflow container works wonky at best.

Open Pixelatex opened this issue 6 years ago • 1 comments

The setup is like this.

Side bar component

  • Tabs (Scroll.Link)

View component

  • Scrollable container contains components -- Components (Scroll.Element)

The components are tables and after mounting will start loading their content. As such, the size of the component constantly changes.

Now the issue is that it scrolls randomly. It will not navigate to the top of a component but rather to the middle.. or 3/4 or...wherever. My guess is that the height is incorrect because the components change it.

p.s. Yes, I am using the dynamic prop on the links but this doesn't do a thing :/

Pixelatex avatar May 23 '18 06:05 Pixelatex

same issue, any fix for this?

jasjamjos avatar Apr 04 '22 09:04 jasjamjos