From: Michael M Slusarz Date: Mon, 28 Sep 2009 17:11:13 +0000 (-0600) Subject: Another attempt at sizing correctly - use entire HTML element instead of BODY tag X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c6ca40d5ef1c53f63e85958b3a688040fa8ee43e;p=horde.git Another attempt at sizing correctly - use entire HTML element instead of BODY tag --- 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.