* Mail: Fix issue download an attachment from mail preview, crashes Chrome

This commit is contained in:
Hadi Nategh 2015-10-16 07:51:05 +00:00
parent f8d2aa0364
commit 2741ebc959

View File

@ -302,6 +302,12 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint],
// Ok, update children // Ok, update children
self.iterateOver(function(widget) { self.iterateOver(function(widget) {
// Extra resize would cause stalling chrome
// as resize might confilict with bottom download bar
// in chrome which does a window resize, so better to not
// trigger second resize and leave that to an application
// if it is neccessary.
// Above forcing is not enough for Firefox, defer // Above forcing is not enough for Firefox, defer
window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200); window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200);
},self,et2_IResizeable); },self,et2_IResizeable);