Skip to content
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

Affix sticks to the top after going to the bottom #9742

Closed
ShaunR opened this issue Aug 17, 2013 · 1 comment
Closed

Affix sticks to the top after going to the bottom #9742

ShaunR opened this issue Aug 17, 2013 · 1 comment

Comments

@ShaunR
Copy link

ShaunR commented Aug 17, 2013

I'm thinking this is a bug but I could be wrong. I've got a test page up showing the issue that can be found at http://72.1.241.234/affix/

This is whats happening from what i can tell....

When scrolling down to the bottom affix will add a position:relative and a top: ##px style to the element. Then when you start to scroll back up top is removed but the position: relative is left behind. What ends up happening is that the affix element goes back to the top and affix no longer works.

When the affix element moves initially it's position is fixed and with that left over position: relative style it's taking over.

@mdo
Copy link
Member

mdo commented Aug 17, 2013

Dupe of #9342 I believe.

@mdo mdo closed this as completed Aug 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants