-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page height change cause sticky element's stuck point shifts #28
Comments
About title change: It seems it's the expected behavior for an element stay on top at the beginning, so the real issue is the sticky element changes the point of when to stuck. |
@kamiyeye you could try to force state change after page content(height) has been changed. Something like
that's might be because of getBounds wasn't called on content height change |
I have changed my JS code back to before
but added a line in CSS for fixed header
this works in all major browsers and page height doesn't matter. I think Stickystate is decent for elements sit in somewhere middle of a page, but not the best for sticky header. |
Tested in Chrome, Firefox and IE, when a page has content added dynamically on scrolling, the sticky element changes its stuck point, that to say if the element is supposed to stuck when it reaches top, it won't happen until you keep scrolling down at a certain distance which the distance is height of the dynamically added content.
Please fix this issue, thanks!
The text was updated successfully, but these errors were encountered: