Browse Source

fixed content height calculation

REJack 5 years ago
parent
commit
bd982813c4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      build/js/Layout.js

+ 4 - 2
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,