mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Account for (optional) footer in wrapper height calc.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user