Skip to content

Commit

Permalink
Merge pull request ColorlibHQ#62 from seven1m/footer
Browse files Browse the repository at this point in the history
Account for (optional) footer in wrapper height calc.
  • Loading branch information
almasaeed2010 committed Jul 3, 2014
2 parents 5ad2be7 + 1d900be commit 6e4a3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/AdminLTE/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e4a3ae

Please sign in to comment.