title: How to compute the height of an element in jQuery?
body: <p>I am using an accordion which was written by somebody else. When the accordion is initially displayed, each rows' initial heights are persisted, and then their heights are set to 0. And then when the row becomes visible, its height is restored to its original value.</p>
  
  <p>But in my case, the accordion's heights will change because I am asynchronously populating them with data. So, when the row becomes visible, I'd like to calculate the rows' height based on it's new constents. However, because its height was set to 0 with <code>.css('height', 0)</code>, <code>$(elem).height()</code> gives 0. </p>
  
  <p>Is there a way to calculate the height of the element, rather than just retrieve it's css height value?</p>