fixed-sticky icon indicating copy to clipboard operation
fixed-sticky copied to clipboard

Not updating position on DOM changes

Open Trevald opened this issue 7 years ago • 2 comments

I have a toggable area above the sticky section. When the toggled area are hidden (default) everything works fine. But when toggled open the element that should be sticky get pushed down and when scrolling down it switches to fixed to early. Which I assume is because it doesn't recalculate it's initial position.

Any way to fix this without having to check for dom-changes and destroy re-initiate everytime?

Trevald avatar Dec 13 '16 21:12 Trevald

It also has problems when page resizes.

gqqnbig avatar Mar 06 '17 23:03 gqqnbig

Would love to see a solution to this. Fixed-sticky elements "jump" to the top of the page too early with an implementation that's even simpler and more commonplace: asynchronously-loaded ads (for which a height is not known until the ad is loaded, which seems to happen after fixed-sticky has been initialized).

flagster76 avatar Apr 13 '17 16:04 flagster76