I am facing an issue with jQuery miscalculating the space at the bottom of a page I'm working on, possibly due to hidden div layers present on the page.
Is there a way for jQuery to accurately calculate the 'real' height of the page as it appears in the browser? Below is the code snippet I have tried:
var doc_height = $(document).height();
var footerHeight = $('.footer-wrapper').height();
var main_body_height = doc_height - footerHeight;
$("div.wrapper-holder").height(main_body_height);
This code works fine on other pages of the site, so I'm puzzled about what could be causing the issue specifically on this page.
Here's a screenshot showcasing the problem:
You can view the actual page here:
Any assistance or insights you can provide would be greatly appreciated...