This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-05-13 18:09:12 +02:00
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//copy from AdminLTE app.js
|
|
|
|
var fixContentWrapperHeight = function () {
|
2016-05-22 10:29:32 +02:00
|
|
|
var windowHeight = $(window).height();
|
2016-05-13 18:09:12 +02:00
|
|
|
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
|
|
|
|
|
2016-06-11 12:52:40 +02:00
|
|
|
$('.content-body').css('height', windowHeight - neg);
|
2016-05-13 18:09:12 +02:00
|
|
|
};
|
|
|
|
|
2016-06-11 12:52:40 +02:00
|
|
|
$(window, '.wrapper').resize(function () {
|
2016-05-13 18:09:12 +02:00
|
|
|
fixContentWrapperHeight();
|
2021-02-14 12:36:19 +01:00
|
|
|
|
|
|
|
setInterval(function(){
|
|
|
|
fixContentWrapperHeight();
|
|
|
|
}, 1);
|
2016-05-13 18:09:12 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
fixContentWrapperHeight();
|
2016-08-01 16:49:16 +02:00
|
|
|
}());
|