Another attempt at sizing correctly - use entire HTML element instead of BODY tag
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Sep 2009 17:11:13 +0000 (11:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Sep 2009 17:11:13 +0000 (11:11 -0600)
imp/js/imp.js

index 4076e39..9f46c2c 100644 (file)
@@ -80,7 +80,7 @@ document.observe('dom:loaded', function() {
     IMP.iframeResize = function(id)
     {
         id = $(id);
-        id.setStyle({ height: id.contentWindow.document.body.scrollHeight + 'px' });
+        id.setStyle({ height: id.contentWindow.document.lastChild.scrollHeight + 'px' });
     };
 
     // If menu is present, attach event handlers to folder switcher.