From c6ca40d5ef1c53f63e85958b3a688040fa8ee43e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 28 Sep 2009 11:11:13 -0600 Subject: [PATCH] Another attempt at sizing correctly - use entire HTML element instead of BODY tag --- imp/js/imp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/imp.js b/imp/js/imp.js index 4076e39c0..9f46c2c6c 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -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. -- 2.11.0