resize event not triggered after expand treemenu
See original GitHub issueI try to update v2.1.2 to actual v2.4.
But when I update old app.min.js
to new adminlte.min.js
, I get the following issue:
If I use a content page that is smaller then the browser’ height and expand one of the treeview-menus on the left sidebar, the footer should move down to always stay on page’s bottom. This was workig in the older versions, but does not in v2.4
I also tried to reproduce it with the demo page: With the browser’s developert tools, I removed some of the content, did a browser resize and swithed back to fullscreen, and than expanded one of the treemenu.
This is what I get before expand e.g. the Charts-Menu (everything is as axpected):
And after expand Charts: The Footer is not aligned to bottom and there are two scrollbars on the right. It goes to normal if I collapse the menu or do a screen resize - but the resize event sould get triggered automatically.
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top GitHub Comments
The following things I found out:
jquery 3.2.1 don’t work correctly to me. It gets wrong
height
andouterHeight
values, if browser’s zoom factor is not set to 100%. With jQuery 3.1.1 the values are correctly.in
adminlte(.min).js
I found an issue:sidebarHeight
withwindowHeight
, it’s needed to also add the header’s height to get the overall height, because the menu-sidebar is placed under the header.neg
variable. In my case, in Opera I always had a scrollbar to scroll only 1px, because I need to use a page zoom factor.setTimeout
function before read thecontrolSidebar
’s height, because without it sometimes returned a insufficient value.Here my suggestion to the code. My changed lines are marked with a red
>
on the left.Please review/test out my code. For me it works fine.
@Th3M3 you’re most welcome.
Regarding the
bower_components
part, try downloading the master branch, and you should be able to see it. Cheers!