Skip to content

Commit

Permalink
Updated app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Apr 19, 2015
1 parent 6546140 commit d4674d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dist/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4674d3

Please sign in to comment.