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

This commit is contained in:
Hadi Nategh 2015-10-15 13:02:26 +00:00
parent 2348b7da46
commit 9dd37010d4

View File

@ -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;
}
},