18 lines
445 B
JavaScript
18 lines
445 B
JavaScript
|
(function () {
|
||
|
'use strict';
|
||
|
|
||
|
//copy from AdminLTE app.js
|
||
|
var fixContentWrapperHeight = function () {
|
||
|
var windowHeight = $(window).height();
|
||
|
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
|
||
|
|
||
|
$('.content-body').css('height', windowHeight - neg);
|
||
|
};
|
||
|
|
||
|
$(window, '.wrapper').resize(function () {
|
||
|
fixContentWrapperHeight();
|
||
|
});
|
||
|
|
||
|
fixContentWrapperHeight();
|
||
|
})();
|