get contents height of div that has oveflow:hidden style
<p>I'm designing a vertical scroll-bar plugin for jquery. my plugin accepts a <strong>height</strong> value as option and if the div height exceeds the given height the scroll-bar will be visible. now the problem is I need to get the real height of the div content.</p>

<pre><code>  &lt;div id="scroll"&gt;
     Contents Here
    &lt;/div&gt; 
</code></pre>

<p>jquery:</p>

<pre><code> $.fn.vscrollbar = function (options) {
    .
    .
    .
    var contentHeight=this.contents().height() //that is not working correctly
    if(contentHeight &gt; options.height){
    this.css({overflow : 'hidden'}).height(options.height); 
    }
    .
    .
    .
    })(jQuery);
</code></pre>

<p>I can get the height of div before applying 'overflow:hidden' but the problem is I want this to work even if it has overflow:hidden style from the begining.</p>
