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

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();
})();