mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Fix TypeError: Cannot read properties of undefined (reading 'position')
Caused by LitElement not having a styles property. Just skip those to avoid the error
This commit is contained in:
parent
a1f8aca282
commit
a73f0771e6
@ -268,9 +268,13 @@ egw.extend('utils', egw.MODULE_GLOBAL, function()
|
|||||||
var oldProps = [];
|
var oldProps = [];
|
||||||
$hiddenParents.each(function() {
|
$hiddenParents.each(function() {
|
||||||
var old = {};
|
var old = {};
|
||||||
for ( var name in props ) {
|
if (this.styles)
|
||||||
|
{
|
||||||
|
for (var name in props)
|
||||||
|
{
|
||||||
old[name] = this.style[name];
|
old[name] = this.style[name];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
jQuery(this).show();
|
jQuery(this).show();
|
||||||
oldProps.push(old);
|
oldProps.push(old);
|
||||||
});
|
});
|
||||||
@ -282,9 +286,13 @@ egw.extend('utils', egw.MODULE_GLOBAL, function()
|
|||||||
|
|
||||||
$hiddenParents.each(function(i) {
|
$hiddenParents.each(function(i) {
|
||||||
var old = oldProps[i];
|
var old = oldProps[i];
|
||||||
for ( var name in props ) {
|
if (this.style)
|
||||||
|
{
|
||||||
|
for (var name in props)
|
||||||
|
{
|
||||||
this.style[name] = old[name];
|
this.style[name] = old[name];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//$.log(”w: ” + dim.w + ”, h:” + dim.h)
|
//$.log(”w: ” + dim.w + ”, h:” + dim.h)
|
||||||
return dim;
|
return dim;
|
||||||
|
Loading…
Reference in New Issue
Block a user