There are times when you need to give the height of the wrapper div to the page height. Here is a simple jquery script to set the height of the wrapper div to the page height.
$(document).ready( function(){
$("#name-of-the-element").height($(document).height());
});