fixed-sticky
fixed-sticky copied to clipboard
Not updating position on DOM changes
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?
It also has problems when page resizes.
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).