Closed javinievas closed 4 years ago
Answering myself....
Correcting the issue #11 with: this.initScrollbar('sidenav'); the perfectscrollbar starts to work and this issue disappears
This issue has been fixed in v1.2.0 along with some other issues & improvements. For more details check out this changelog
!!! IF YOU DO NOT USE THIS ISSUES TEAMPLATE, YOUR ISSUE IS LIABLE TO BEING IGNORED BY US
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
When moving the mouse outside the sidebar, it should either remain the same or collapse to show just the icons.
Current Behavior
When movint the mouse outside the sidebar the captions of the buttons disappear, the icon remains, but the sidebar width remains the same, so you end up with a sidebar with the same size full of whitespace and just the icons.
Failure Information (for bugs)
Seems like a bug as I can reproduce it within your online demo apart from my current site.
Steps to Reproduce
Context
Not relevant as it also happens on the online version.
Failure Logs
Looks like the problem is with the body class g-sidenav-pinned as it shows a .g-sidenav-pinned .sidenav { max-width: 250px!important; } and with this rule: .g-sidenav-hidden:not(.g-sidenav-show) .sidenav .nav-item .collapse, .g-sidenav-hidden:not(.g-sidenav-show) .sidenav .nav-link-text { display: none!important; }
that must prevent it from collapse. I'm not sure if in these resolutions the behavior should be to collapse to icons or just to don't hide the captions. Perhaps the latter one might be the best, in my opinion.
When it is visually broken (as the image attached) if you remove the g-sidenav-hidden from the body class, captions are shown as it might be expected. So maybe there is an issue with some eventlistener not being removed as it keeps adding and removing the g-sidenav-hidden on mouse enter and leave events.
Hope this could address you right to the bug.