From 9dd37010d4628068c2d445bba247dc8c3258a5d6 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 15 Oct 2015 13:02:26 +0000 Subject: [PATCH] Trigger explicit resize of splitter left panel when undock, because it would not be resized with correct size if it happens after sidebar get resized --- mail/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 2d6018e0d0..4418878bde 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -699,7 +699,11 @@ app.classes.mail = AppJS.extend( } else { - if (!this.mail_previewAreaActive) splitter.undock(); + if (!this.mail_previewAreaActive) + { + splitter.undock(); + window.setTimeout(function(){splitter.left.trigger('resize.et2_split.mailSplitter');},200); + } this.mail_previewAreaActive = true; } },