-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Affixed Sidebar containing accordion div #16356
Comments
Have you tried something like: $('#your-affixed-sidebar').on('hidden.bs.collapse shown.bs.collapse', function (e) {
$('#your-affixed-sidebar').affix('checkPosition');
}); ? |
Yes I did. it could only fix the position of the affixed div without click, but it still overlapping the footer for a second then back normal. ! |
I think this should be possible with css alone. If you are correctly setting an affix-bottom class, you should be able to pin the element to the bottom of the page using the Doing so would make your accordion grow from the bottom, up - which would mean that when the element resized it wouldn't overlap your footer. Hard to tell though without an actual example. If you want to create a jsbin or something similar we could probably help you out. Feel free to reopen an issue once you do, thanks! |
I use Bootstrap 3 Affix for a sidebar containing an accordion. the issue that when I scroll to the bottom and opening an accordion body , it's flow over the footer , but the offset back normal again when I click on the page. Any Ideas to stop the accordion flow over the footer normally without clicking !
The text was updated successfully, but these errors were encountered: