From bd982813c46e3301b4a951bb80ab49a20306f202 Mon Sep 17 00:00:00 2001 From: REJack Date: Sat, 12 Oct 2019 11:36:52 +0200 Subject: [PATCH] fixed content height calculation --- build/js/Layout.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/js/Layout.js b/build/js/Layout.js index 2fa2f1be4..0733ee56c 100644 --- a/build/js/Layout.js +++ b/build/js/Layout.js @@ -77,9 +77,11 @@ const Layout = (($) => { const max = this._max(heights) - $(Selector.CONTENT).css('min-height', max - heights.footer) - + $(Selector.CONTENT).css('min-height', max - heights.header) + if ($('body').hasClass(ClassName.LAYOUT_FIXED)) { + $(Selector.CONTENT).css('min-height', max - heights.header - heights.footer) + if (typeof $.fn.overlayScrollbars !== 'undefined') { $(Selector.SIDEBAR).overlayScrollbars({ className : this._config.scrollbarTheme,