mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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.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();
|
||||
});
|
||||
}
|
||||
).finally(() => this.template_promise = null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user