瀏覽代碼

Updated app.js

Abdullah Almsaeed 10 年之前
父節點
當前提交
d4674d3a1d
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      dist/js/app.js
  2. 0 0
      dist/js/app.min.js

+ 11 - 0
dist/js/app.js

@@ -248,11 +248,22 @@ function _init() {
       if ($("body").hasClass("fixed")) {
         $(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight());
       } else {
+        var postSetWidth;
         if (window_height >= sidebar_height) {
           $(".content-wrapper, .right-side").css('min-height', window_height - neg);
+          postSetWidth = window_height - neg;
         } else {
           $(".content-wrapper, .right-side").css('min-height', sidebar_height);
+          postSetWidth = sidebar_height;
         }
+        
+        //Fix for the control sidebar height
+        var controlSidebar = $($.AdminLTE.options.controlSidebarOptions.selector);
+        if(typeof controlSidebar !== "undefined") {
+          if(controlSidebar.height() > postSetWidth)
+            $(".content-wrapper, .right-side").css('min-height', controlSidebar.height());
+        }
+        
       }
     },
     fixSidebar: function () {

File diff suppressed because it is too large
+ 0 - 0
dist/js/app.min.js


Some files were not shown because too many files changed in this diff