react-ui-scrollspy icon indicating copy to clipboard operation
react-ui-scrollspy copied to clipboard

offsetTop does not seem to be working.

Open FelixHeber opened this issue 2 years ago • 0 comments

Maybe i am missing out on something, but i cannot get "offsetTop" to work.

I got two columns, left Column consists of Images, right Column consists of teasers. The Teasers Are using the scrollspy functionality.

Desired: The images inside of the left column should change on update and show the image of the active teaser.

So far so good everything works, but if i do want a small offset for the teasers. Nothing changes when i use "offsetTop={500}". However, a negative "offsetBottom" works, but this is not what i need.

Can someone help me out? Thanks a lot.

FelixHeber avatar Jun 28 '23 09:06 FelixHeber