layout the child component (#16826)

This commit is contained in:
Alan Ren
2021-08-19 09:42:27 -07:00
committed by GitHub
parent 39c23a0382
commit ae2fc70a60

View File

@@ -67,10 +67,18 @@ export default class LoadingComponent extends ComponentBase<azdata.LoadingCompon
this.layout();
}
public override layout() {
super.layout();
if (this._component) {
const childComponent = this.modelStore.getComponent(this._component.id);
childComponent?.layout();
}
}
public override setProperties(properties: { [key: string]: any; }): void {
const wasLoading = this.loading;
super.setProperties(properties);
if (wasLoading && !this.loading) {
if (wasLoading !== this.loading) {
status(this.getStatusText());
}
}