Skip to content

[BUG] Sidebar and branding scroll with page when using fixed-header #6020

@burdittw

Description

@burdittw

When you use fixed-header class in the body the expected outcome is not presented. The menu header stays in place as expected but the branding part of the header scrolls up and down with the page. One would expect the header to stay put but the sidebar to either scroll or stay put with its own scrollbar for the menu. I personally would expect the sidebar as a whole to not move, just the page content should scroll with the header staying fixed to the top of the page.

To Reproduce

  1. Set <body class="fixed-header sidebar-expand-lg bg-body-tertiary">
  2. Save the code above and refresh the page.
  3. The demo page for the fixed header has enough content to make this reproducible.

Expected behavior
Sidebar and brand should not scroll with the page, it should have its own scrollbar.

Screenshots

Image

Environment (please complete the following information):

  • AdminLTE Version: v4 latest RC
  • Operating System: Windows 11
  • Browser (Version): Edge(latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions