From 4b63e7c40316ab4fa108d606d979fd9049cc0f6b Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 20 Aug 2015 13:12:31 -0400 Subject: [PATCH] Expand page height based on infobar height exceeding main height --- footer.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/footer.php b/footer.php index 3f2b806..b128ac4 100644 --- a/footer.php +++ b/footer.php @@ -49,8 +49,16 @@ $blockquote.attr('data-fullwidth',width+'px'); $blockquote.attr('data-miniheight','200px'); $blockquote.attr('data-miniwidth','50px'); + if ($("#extra").height() > $("main").height()) { + console.log($(".inner-wrap").height()); + console.log($("#extra").height() - $("main").height()); + console.log($(".inner-wrap").height() + ($("main").height() - $("").height())); + $(".inner-wrap").height($(".inner-wrap").height() + ($("#extra").height() - $("main").height())); + console.log($(".inner-wrap").height()); + } $("#extra").height(0).width(0); $("#extra").css('display','block'); + // $(function() { // $("#right-sidebar-expand").click(function(){ // $("#expand").animate({height:"300px", width:"300px"}); @@ -59,7 +67,6 @@ // $("#expand").animate({height:"0px",width:"0px"}); // }); // }); - $('#right-sidebar-expand').on('click', function(e){ $("#extra").attr("display", "visible"); $("#extra").animate({ -- 2.17.1