I need to assess the total height of a document on the fly, along with the window height and scroll in order to position a moving element accurately.
The trouble I am having is that $(document).height() seems to be sending me the wrong figure.
On the page refresh, the document reports one figure, but after resizing the window, and putting it back as it was, that figure has changed by over 200px!!
Any known issues that could cause this?