I have a wrapper positioned to center with an y-repeated background image:
...some content &
The easiest way is to add the:
$('#ID').css("height", $(document).height());
after the correct page height is determined by the browser. If the document height is changed once more re-run the above code.