How to calculate height of div after dynamically adding content into it?
<p>I have a div with dynamic content (images and text). I then need to calculate the height of the div and do something to it. </p>

<p>However its currently calculating the height of the div BEFORE the contents have been added. </p>

<p>Does anyone have a solution to this?</p>

<pre><code>$('#results').find('article').addClass(result); // add class to entire section
$('#results article').find('.details h1 span').html(title); // add title
$('#results article').find('.details p').html(message); // add message

var windowHeight = $('#results').find('article').innerHeight(); 
</code></pre>
