find the height of a div and change the current div height to match
<p>I'm trying to make a div the same height as the parent (if the parent is larger) or make the parent the same height as the current div (if the current div is larger)</p>

<p>Here's what i've got so far</p>

<pre><code>$(this).parents().find('.address').slideToggle(function() {
    $(this).parent().height($(this).parent().find('.address').height())
})
</code></pre>

<p>It makes the parent the height of the current div (but in my current case the parent is larger than the current div</p>

<p>Any ideas?</p>

<p>Thanks</p>

<p>Jamie</p>
