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

layout-navbar-fixed not working #50

Open
hubert17 opened this issue Apr 13, 2021 · 2 comments
Open

layout-navbar-fixed not working #50

hubert17 opened this issue Apr 13, 2021 · 2 comments

Comments

@hubert17
Copy link

Hi, I just have notice that the navbar is no longer sticky even if it's set to layout-navbar-fixed

protected override void OnAfterRender(bool isFirstRender)
{
    layoutManager.IsFooterFixed = true;
    layoutManager.IsNavBarFixed = true;
    layoutManager.IsSideBarFixed = true;
    base.OnAfterRender(isFirstRender);
}

Please advise. Thank you.

@hubert17
Copy link
Author

I've added this and it is now working good.
<nav class="main-header navbar sticky-top navbar-expand navbar-white navbar-light">

sticky-top

from here: https://stackoverflow.com/a/64161697/1281209

@hubert17
Copy link
Author

This also fixes the issue:

.layout-navbar-fixed .main-header { left: 0; position: fixed; right: 0; top: 0; z-index: 1037; }

That is without the .wrapper

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

1 participant