mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Catch and log errors when trying to resize to prevent home from breaking if something goes wrong.
This commit is contained in:
parent
27720bdaa2
commit
4c307f7d1f
@ -302,7 +302,12 @@ var et2_portlet = et2_valueWidget.extend(
|
|||||||
if(data.attributes.width || data.attributes.height)
|
if(data.attributes.width || data.attributes.height)
|
||||||
{
|
{
|
||||||
// Tell children
|
// Tell children
|
||||||
|
try {
|
||||||
this.iterateOver(function(widget) {widget.resize();},null,et2_IResizeable);
|
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
|
this, true, this
|
||||||
|
Loading…
Reference in New Issue
Block a user