blazor-adminlte icon indicating copy to clipboard operation
blazor-adminlte copied to clipboard

layout-navbar-fixed not working

Open hubert17 opened this issue 3 years ago • 2 comments

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 avatar Apr 13 '21 21:04 hubert17

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 avatar Apr 13 '21 22:04 hubert17

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

hubert17 avatar Apr 13 '21 22:04 hubert17