|
@@ -248,11 +248,22 @@ function _init() {
|
|
if ($("body").hasClass("fixed")) {
|
|
if ($("body").hasClass("fixed")) {
|
|
$(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight());
|
|
$(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight());
|
|
} else {
|
|
} else {
|
|
|
|
+ var postSetWidth;
|
|
if (window_height >= sidebar_height) {
|
|
if (window_height >= sidebar_height) {
|
|
$(".content-wrapper, .right-side").css('min-height', window_height - neg);
|
|
$(".content-wrapper, .right-side").css('min-height', window_height - neg);
|
|
|
|
+ postSetWidth = window_height - neg;
|
|
} else {
|
|
} else {
|
|
$(".content-wrapper, .right-side").css('min-height', sidebar_height);
|
|
$(".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 () {
|
|
fixSidebar: function () {
|