From: Laury GvR Date: Thu, 20 Aug 2015 17:12:31 +0000 (-0400) Subject: Expand page height based on infobar height exceeding main height X-Git-Tag: V1.0.0^2~108 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4b63e7c40316ab4fa108d606d979fd9049cc0f6b;p=WP-Themes%2FGovernmentEmmet.git Expand page height based on infobar height exceeding main height --- 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({