__fix.js 532 B

123456789101112131415161718192021
  1. (function () {
  2. 'use strict';
  3. //copy from AdminLTE app.js
  4. var fixContentWrapperHeight = function () {
  5. var windowHeight = $(window).height();
  6. var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
  7. $('.content-body').css('height', windowHeight - neg);
  8. };
  9. $(window, '.wrapper').resize(function () {
  10. fixContentWrapperHeight();
  11. setInterval(function(){
  12. fixContentWrapperHeight();
  13. }, 1);
  14. });
  15. fixContentWrapperHeight();
  16. }());