Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Not updating position on DOM changes #113

Open
Trevald opened this issue Dec 13, 2016 · 2 comments
Open

Not updating position on DOM changes #113

Trevald opened this issue Dec 13, 2016 · 2 comments

Comments

@Trevald
Copy link

Trevald commented Dec 13, 2016

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?

@gqqnbig
Copy link

gqqnbig commented Mar 6, 2017

It also has problems when page resizes.

@flagster76
Copy link

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants