react-scroll
react-scroll copied to clipboard
Scroll to dynamic elements in an overflow container works wonky at best.
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 :/
same issue, any fix for this?