fix(js): body layout-fixed & layout-navbar-fixed calculates wrong minHeight

pull/4174/head
REJack 2022-01-09 22:42:22 +01:00
parent 69c8d427be
commit c1101389a3
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Layout {
const heights = {
window: $(window).height(),
header: $(SELECTOR_HEADER).length > 0 && !$('body').hasClass('layout-navbar-fixed') ? $(SELECTOR_HEADER).outerHeight() : 0,
header: $(SELECTOR_HEADER).length > 0 ? $(SELECTOR_HEADER).outerHeight() : 0,
footer: $(SELECTOR_FOOTER).length > 0 ? $(SELECTOR_FOOTER).outerHeight() : 0,
sidebar: $(SELECTOR_SIDEBAR).length > 0 ? $(SELECTOR_SIDEBAR).height() : 0,
controlSidebar