From 2741ebc95927f8b0749068d0de6633ab1f16e4ce Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 16 Oct 2015 07:51:05 +0000 Subject: [PATCH] * Mail: Fix issue download an attachment from mail preview, crashes Chrome --- etemplate/js/et2_widget_split.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_widget_split.js b/etemplate/js/et2_widget_split.js index 41c53e165d..ed90bc5ae3 100644 --- a/etemplate/js/et2_widget_split.js +++ b/etemplate/js/et2_widget_split.js @@ -302,6 +302,12 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint], // Ok, update children 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 window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200); },self,et2_IResizeable);