mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Give webComponents inside nextmatch a chance to finish before we calculate sizes
This commit is contained in:
parent
c2fea85c2a
commit
9ea00bb95f
@ -2442,7 +2442,23 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
this.dynheight = this._getDynheight();
|
this.dynheight = this._getDynheight();
|
||||||
}
|
}
|
||||||
this.dynheight.initialized = false;
|
this.dynheight.initialized = false;
|
||||||
|
|
||||||
|
// Give components a chance to finish. Their size will affect available space, especially column headers.
|
||||||
|
let waitForWebComponents = [];
|
||||||
|
this.getChildren().forEach((w) =>
|
||||||
|
{
|
||||||
|
// @ts-ignore
|
||||||
|
if(typeof w.updateComplete !== "undefined")
|
||||||
|
{
|
||||||
|
// @ts-ignore
|
||||||
|
waitForWebComponents.push(w.updateComplete)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Promise.all(waitForWebComponents).then(() =>
|
||||||
|
{
|
||||||
this.resize();
|
this.resize();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
).finally(() => this.template_promise = null);
|
).finally(() => this.template_promise = null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user