Fix Bug #8616
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 6 Oct 2009 23:15:20 +0000 (17:15 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 6 Oct 2009 23:15:20 +0000 (17:15 -0600)
imp/docs/CHANGES
imp/js/compose-dimp.js

index 5c711e2..81d61a6 100644 (file)
@@ -2338,6 +2338,12 @@ OLD DIMP CHANGELOG
 ==================
 
 ------
+v1.1.4
+------
+[mms] Fix sizing fckeditor compose editor frame in IE (Bug #8616).
+
+
+------
 v1.1.3
 ------
 
index fe471ed..2bf99c2 100644 (file)
@@ -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' });