From: Michael M Slusarz Date: Mon, 28 Sep 2009 04:04:35 +0000 (-0600) Subject: Ticket #8592: Fix resizing height X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e41030bfb7f3603f8a631615ebc5655788e0d0d8;p=horde.git Ticket #8592: Fix resizing height --- diff --git a/imp/js/imp.js b/imp/js/imp.js index 9843cf592..4076e39c0 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -61,6 +61,8 @@ document.observe('dom:loaded', function() { }); e.stop(); + + this.iframeResize.bind(this, iframe.readAttribute('id')).defer(); }; IMP.iframeInject = function(id, data) @@ -78,7 +80,7 @@ document.observe('dom:loaded', function() { IMP.iframeResize = function(id) { id = $(id); - id.setStyle({ height: id.contentWindow.document.height + 'px' }); + id.setStyle({ height: id.contentWindow.document.body.scrollHeight + 'px' }); }; // If menu is present, attach event handlers to folder switcher.