You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This solves the navbar behavior before calling k.next(). After calling it the navbar is again fixed to the top of the page (not the top of the viewport like expected)
The text was updated successfully, but these errors were encountered:
lfuelling
changed the title
Bootstraps fixed navbar issues
Bootstrap fixed navbar issue
Sep 9, 2015
Alright, I found the solution. If you apply position: fixed; to childs of transformed/animated elements, the fixed element will be fixed to the parent element instead to the viewport.
Hi Hakim,
I found an issue with Bootstraps fixed navbar. Let's assume you have the following structure:
When using Kontext like this, the Navbar is fixed to top but won't scroll along with the page. It just stays at the top.
I found a solution for this though, you just need to comment out the following CSS:
I have no idea why the above code makes Bootstraps navbar behave like this. Hope you can help me with this.
EDIT: I've found a better solution by just overwriting those properties like this:
This solves the navbar behavior before calling
k.next()
. After calling it the navbar is again fixed to the top of the page (not the top of the viewport like expected)The text was updated successfully, but these errors were encountered: