Animate height, not working in IE
<p>I'm changing the content of a div dynamically, using jquery
The height of the div should change/animate according to the new content</p>

<p>I found some lines that work perfectly in Chrome, Firefox and on iPhone.
But in IE the content animates but it goes out "of the box". Meaning.. the height of the div does'nt change</p>

<pre><code>var $mydiv = $('#venues');
$mydiv.css('height', $mydiv.height());
$mydiv.html(TheDynamicContent);
if (!$mydiv.find("div.innerWrapper").length) { $mydiv.wrapInner('&lt;div class="innerWrapper"/&gt;'); }
$mydiv.animate({height: $('div:first',$mydiv).height()});
</code></pre>

<p>I have searched a lot trying to find alternatives/fixes, without luck..
What to do? ;)</p>

<p>UPDATE: It seemed that <strong>curvycorners</strong> was generating an extra div, which only IE was sensitive about. So this code is actually ok.</p>
