-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fixed menu inside a Sidebar pushable? #1646
Comments
I got what I want by using flex. |
@RhanCandia It would be nice to update the issue with the correct answer so that other people can follow it in the future. |
@mairh I updated my opening post to explain how I fixed it. Thanks for reminding me. |
@RhanCandia I am having the same issue but your solution isn't working for me. Any chance you could post the full code, including css? Thanks! |
I was unable to use this solution too. |
@RhanCandia Can you upload the full code. I am facing the problem of fixed=top menu not working in navbar. it would be nice if you show the code of adding flex alone of content used inside sidebar.pusher |
I've been stuck here. Basically, I added a fixed menu inside a sidebar pushable like so:
Sidebar.js
NavBar.js
EDIT:
I was able to fix it by using flex layouts.
Basically, I had to make the
Segment
component inside theSidebar.Pusher
usedisplay: flex
withflex-direction: column
so I can lay the contents properly. Then I gave it two children, theNavBar
and theContent
. I gaveContent
aflex-grow: 1
property. Now The header stays on top. Here's how it looks like now:The text was updated successfully, but these errors were encountered: