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 14:35:24 +00:00
parent 04f610b32c
commit f8d2aa0364

View File

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