From c22f81e1ea9cd3a1a98a133def0b1a2160cbeebd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 4 Nov 2009 11:36:48 -0700 Subject: [PATCH] Fix resizing when removing attachment --- imp/js/compose-dimp.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index fd9f52fa2..4b7ebb01e 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -555,15 +555,17 @@ var DimpCompose = { n = $(n); ids.push(n.down('SPAN.remove').readAttribute('atc_id')); n.fade({ - afterFinish: function() { n.remove(); }, + afterFinish: function() { + n.remove(); + this.resizeMsgArea(); + }.bind(this), duration: 0.4 }); - }); + }, this); if (!$('attach_list').childElements().size()) { $('attach_list').hide(); } DimpCore.doAction('DeleteAttach', { atc_indices: ids, imp_compose: $F('composeCache') }); - this.resizeMsgArea(); }, resizeMsgArea: function() -- 2.11.0