Browse Source

Merge pull request #62 from seven1m/footer

Account for (optional) footer in wrapper height calc.
Abdullah Almsaeed 10 years ago
parent
commit
6e4a3aeea0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/AdminLTE/app.js

+ 1 - 1
js/AdminLTE/app.js

@@ -101,7 +101,7 @@ $(function() {
      **/
     function _fix() {
         //Get window height and the wrapper height
-        var height = $(window).height() - $("body > .header").height();
+        var height = $(window).height() - $("body > .header").height() - ($("body > .footer").outerHeight() || 0);
         $(".wrapper").css("min-height", height + "px");
         var content = $(".wrapper").height();
         //If the wrapper height is greater than the window