From 988271d3e688f20f96cfb5c0296fc5cdff271019 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 6 Oct 2009 17:15:20 -0600 Subject: [PATCH] Fix Bug #8616 --- imp/docs/CHANGES | 6 ++++++ imp/js/compose-dimp.js | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/imp/docs/CHANGES b/imp/docs/CHANGES index 5c711e26f..81d61a6d8 100644 --- a/imp/docs/CHANGES +++ b/imp/docs/CHANGES @@ -2338,6 +2338,12 @@ OLD DIMP CHANGELOG ================== ------ +v1.1.4 +------ +[mms] Fix sizing fckeditor compose editor frame in IE (Bug #8616). + + +------ v1.1.3 ------ diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index fe471eddf..2bf99c292 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -379,6 +379,10 @@ var DimpCompose = { getMsgAreaHeight: function() { + if (!this.mp_padding) { + this.mp_padding = $('messageParent').getHeight() - $('message').getHeight(); + } + return document.viewport.getHeight() - $('messageParent').cumulativeOffset()[1] - this.mp_padding; }, @@ -568,8 +572,6 @@ var DimpCompose = { return; } - this.mp_padding = $('messageParent').getHeight() - msg.getHeight(); - if (!this.row_height) { // Change the ID and name to not conflict with msg node. m = $(msg.cloneNode(false)).writeAttribute({ id: null, name: null }).setStyle({ visibility: 'hidden' }); -- 2.11.0