This commit is contained in:
Abdullah Almsaeed 2017-01-08 15:23:14 -05:00
parent 76e1d899d5
commit b621ed77f2
2 changed files with 5 additions and 4 deletions

7
dist/js/app.js vendored
View file

@ -257,13 +257,14 @@ function _init() {
// Remove overflow from .wrapper if layout-boxed exists
$(".layout-boxed > .wrapper").css('overflow', 'hidden');
//Get window height and the wrapper height
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
var footer_height = $('.main-footer').outerHeight() || 0;
var neg = $('.main-header').outerHeight() + footer_height;
var window_height = $(window).height();
var sidebar_height = $(".sidebar").height();
var sidebar_height = $(".sidebar").height() || 0;
//Set the min-height of the content and sidebar based on the
//the height of the document.
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 - footer_height);
} else {
var postSetWidth;
if (window_height >= sidebar_height) {

2
dist/js/app.min.js vendored

File diff suppressed because one or more lines are too long