From: Michael M Slusarz Date: Tue, 6 Oct 2009 23:15:20 +0000 (-0600) Subject: Fix Bug #8616 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=988271d3e688f20f96cfb5c0296fc5cdff271019;p=horde.git Fix Bug #8616 --- 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' });