How to get the visible dimensions of a scrollable div?
<p>I am trying to get the visible height of a div and I can't find the way to do it.
<a href="http://jsfiddle.net/MVupa/1/" rel="nofollow">http://jsfiddle.net/MVupa/1/</a></p>

<p>Even the library fracs:
<a href="http://larsjung.de/fracs/" rel="nofollow">http://larsjung.de/fracs/</a></p>

<p>Does not seem to give me the right number:
<a href="http://jsfiddle.net/MVupa/2/" rel="nofollow">http://jsfiddle.net/MVupa/2/</a></p>

<p>Any ideas? </p>

<p>(End goal is to adjust an element max-height dynamically, depending on the window height.)</p>
