This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues/pull-requests.
AriaNg/src/scripts/core/__fix.js

22 lines
532 B
JavaScript
Raw Normal View History

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();
setInterval(function(){
fixContentWrapperHeight();
}, 1);
2016-05-13 18:09:12 +02:00
});
fixContentWrapperHeight();
2016-08-01 16:49:16 +02:00
}());