blazor-adminlte
blazor-adminlte copied to clipboard
layout-navbar-fixed not working
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.
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
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