Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/5683#issuecomment-918443263
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Sep 13, 2021
1 parent 8dfde37 commit c485c74
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions view/include/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,25 @@ function getPageHeight() {
if($('#mainFooter').length){
mainFooterH = $('#mainFooter').height();
}

return mainNavBarH + mainFooterH + $('.container, .container-fluid').first().height();
var containerH = getLargerContainerHeight();
return mainNavBarH + mainFooterH + containerH;
}

function getLargerContainerHeight(){
var conteiners = $('body > .container,body > .container-fluid');
var height = 0;
for (var item in conteiners) {
if(isNaN(item)){
continue;
}
var h = $(conteiners[item]).height();
if(h>height){
height = h;
}
}
return height;
}

</script>
<!--
<?php
Expand Down

0 comments on commit c485c74

Please sign in to comment.