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

Divs with dynamic heights

Open kuiro5 opened this issue 10 years ago • 6 comments

Awesome library, using it on my personal portfolio website, www.kuiros.io. I have divs/sections that are dynamic in height so that they change height when I resize the window. This messes up the anchors where the links scroll to. Is there any way to refresh the anchor positions on a window resize? Thanks a lot.

kuiro5 avatar Jan 18 '16 00:01 kuiro5

Not sure, but it should be possible to do it. I'm surprised it's not dynamic already. I can look into it.

fisshy avatar Jan 19 '16 08:01 fisshy

Thanks, I appreciate it.

kuiro5 avatar Jan 21 '16 05:01 kuiro5

I was wondering if you had any time to look into the dynamic height issue? Really appreciate your help.

kuiro5 avatar Jan 27 '16 23:01 kuiro5

I'm sorry haven't gotten the time to do it yet - I'm going to sit down and rewrite some of the parts to fit future react this week probably and I will fit this case in there as well.

fisshy avatar Jan 28 '16 07:01 fisshy

I have the same issue. I set the div height 100vh Resizing the browser window result in wrong anchor highlight

idw111 avatar Feb 22 '16 05:02 idw111

It happens to accordions too.

doubleppereira avatar Mar 04 '16 11:03 doubleppereira