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 issue with transition from bottom to floating mode #18209

Closed
alsma opened this issue Nov 10, 2015 · 2 comments
Closed

Affix issue with transition from bottom to floating mode #18209

alsma opened this issue Nov 10, 2015 · 2 comments
Labels

Comments

@alsma
Copy link

alsma commented Nov 10, 2015

Hello guys! I'm using Affix plugin v3.3.5 on my site and found strange behaviour. Here is code that initializes plugin:

           // inside JQuery.ready
            var gap = 40, footerHeight = $('#site-footer').outerHeight(true) + gap;
            $('.question-list')
                .affix({
                    offset: {
                        top: 160,
                        bottom: footerHeight
                    }
                })

The issue is when you scroll page down to edge bottom position and then try to return to floating mode (scroll back to the center of the page) affixed panel will be scrolled top. After some investigation I've found that this happens due to jQuery.offset set position: relative for static positioned elements.

I double checked this issue on bootstrap site and found that there is fix of this bug inside CSS. Due to position: absolute set by default for .affix-bottom JQuery.offset will not set position: relative
bctvtf1

Hope I was clear :) Thanks!

@jclif
Copy link

jclif commented Jul 15, 2016

Experiencing this as well. Has there been any update?

@mdo
Copy link
Member

mdo commented Sep 5, 2016

Bootstrap 3 is no longer being officially developed or supported.

All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!

<3,
@mdo and team

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

No branches or pull requests

4 participants