This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/app/scripts/core/__fix.js
2016-05-22 16:29:32 +08:00

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