From e41030bfb7f3603f8a631615ebc5655788e0d0d8 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 27 Sep 2009 22:04:35 -0600 Subject: [PATCH] Ticket #8592: Fix resizing height --- imp/js/imp.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.11.0