AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

[BUG] Sidebar always open after change size screen when use sidebar-collapse

Open yrehan32 opened this issue 3 years ago • 3 comments

on collapsed sidebar (sidebar-mini sidebar-collapse), the sidebar always changes to default when changing screen size. here's the detailed video: https://recordit.co/wmXTiWlye8

yrehan32 avatar Nov 11 '22 01:11 yrehan32

You will need to add JavaScript to manage the state of the sidebar. There is an example on here somewhere. Looking around I found my old post for this on the v4 version and made some adjustments that can be looked at and compare it to what the code is on v3.

  • #4557
  • #4131

These should get you going.

burdittw avatar Nov 11 '22 02:11 burdittw

That litteraly not a bug, you can change that behavior. Simply check out the Docs the autoCollapseSize option should be the right one.

REJack avatar Feb 15 '23 18:02 REJack

That litteraly not a bug, you can change that behavior. Simply check out the Docs the autoCollapseSize option should be the right one.

Unfortunately settings throught that option doesnt work as expected(or it is intended else?). It partly collapse, but "shadow" is still there, and when resizing browser window(imagine it as rotating display on tablet portrait to landscale) popsup/expands menu partly(shadow and nonclickable area) how to reproduce: pre: 0- use clean offline downloaded sample and set it up 1- make window wide,left menu is expanded and close menu by clicking on hamburger(ok) 2- resize window to tight one (still ok) 3- resize window back to wide enought(wrong: menu expands "somehow" - not fully, not mini, but some shadow placeholder about 60px wide) how to disable automatic collapse and expand? - so instead of adding more logic to "remember" opened/closed state(it has its place elsewhere), there should be option to disable event on resizing.

Example how it should act(just left hamburger menu): https://test-2023517164030291.blazorplate.net/identity/roles

yablos avatar Oct 18 '23 05:10 yablos