From 1d900be948ee99abf88a2513a3cd40d2cef44bda Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Sun, 1 Jun 2014 23:58:19 -0500 Subject: [PATCH] Account for (optional) footer in wrapper height calc. --- js/AdminLTE/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/AdminLTE/app.js b/js/AdminLTE/app.js index 85374f86c..cfdce488d 100644 --- a/js/AdminLTE/app.js +++ b/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