瀏覽代碼

#1947 fixed content-wrapper height (#1948)

* fixed content-wrapper height

* updated content wrapper height
kasarla shirisha 6 年之前
父節點
當前提交
113a3b4c8e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      build/js/Layout.js
  2. 1 1
      dist/js/adminlte.js

+ 1 - 1
build/js/Layout.js

@@ -97,7 +97,7 @@
     } else {
       var postSetHeight;
 
-      if (windowHeight >= sidebarHeight) {
+      if (windowHeight >= sidebarHeight + headerHeight) {
         $(Selector.contentWrapper).css('min-height', windowHeight - neg);
         postSetHeight = windowHeight - neg;
       } else {

+ 1 - 1
dist/js/adminlte.js

@@ -614,7 +614,7 @@ throw new Error('AdminLTE requires jQuery')
     } else {
       var postSetHeight;
 
-      if (windowHeight >= sidebarHeight) {
+      if (windowHeight >= sidebarHeight + headerHeight) {
         $(Selector.contentWrapper).css('min-height', windowHeight - neg);
         postSetHeight = windowHeight - neg;
       } else {