title: Faking body.scrollHeight
body: <p>I have a JavaScript application that is being loaded in an iframe (via a Liferay portlet).  The actual HTML is just an empty  tag and the JS is loaded when the document is loaded.</p>
  
  <p>When Liferay loads the page in the iframe, it resizes the frame based on the <code>body.scrollHeight</code> property which ends up being 0 since there is no real content in the page before it is loaded.</p>
  
  <p>Is there a way to to style or modify the page in such a way that <code>body.scrollHeight</code> will give a reasonable value and not zero?</p>
  
  <p>I've tried setting the body height to 100% and adding an <code>&amp;nbsp;</code> but that didn't work.</p>