From f8d2aa03644626e983705b419434ebb073622bee Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 15 Oct 2015 14:35:24 +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 c7be2fbbbd..652197af1b 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -676,7 +676,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; } },