Catch and log errors when trying to resize to prevent home from breaking if something goes wrong.

This commit is contained in:
Nathan Gray 2016-02-23 21:14:26 +00:00
parent 27720bdaa2
commit 4c307f7d1f

View File

@ -302,7 +302,12 @@ var et2_portlet = et2_valueWidget.extend(
if(data.attributes.width || data.attributes.height)
{
// Tell children
try {
this.iterateOver(function(widget) {widget.resize();},null,et2_IResizeable);
} catch (e) {
// Something went wrong, but do not stop
egw.debug('warn',e,this);
}
}
},
this, true, this