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

18 lines
445 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-05-22 10:29:32 +02:00
$(".content-body").css('height', windowHeight - neg);
2016-05-13 18:09:12 +02:00
};
$(window, ".wrapper").resize(function () {
fixContentWrapperHeight();
});
fixContentWrapperHeight();
})();