diff --git a/mail/js/app.js b/mail/js/app.js index 6d7954d6f9..8a343f9466 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -225,15 +225,16 @@ app.classes.mail = AppJS.extend( }); /*Trigger compose_resizeHandler after the CKEditor is fully loaded*/ jQuery('#mail-compose').on ('load',function() { - window.setTimeout(function(){that.compose_resizeHandler();}, 300); + window.setTimeout(function(){ + that.compose_fieldExpander(); + }, 300); }); + //Resize compose after window resize to not getting scrollbar jQuery(window).on ('resize',function() { that.compose_resizeHandler(); }); - this.compose_fieldExpander(); - //Call drag_n_drop initialization for emails on compose this.init_dndCompose();