From 558492d439f0826f2311e45f5a820116c44e33dd Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 16 Sep 2015 14:20:19 +0000 Subject: [PATCH] Fix mail TO field is not getting focused, and initial resize does not work --- mail/js/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();