mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
layout the child component (#16826)
This commit is contained in:
@@ -67,10 +67,18 @@ export default class LoadingComponent extends ComponentBase<azdata.LoadingCompon
|
|||||||
this.layout();
|
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 {
|
public override setProperties(properties: { [key: string]: any; }): void {
|
||||||
const wasLoading = this.loading;
|
const wasLoading = this.loading;
|
||||||
super.setProperties(properties);
|
super.setProperties(properties);
|
||||||
if (wasLoading && !this.loading) {
|
if (wasLoading !== this.loading) {
|
||||||
status(this.getStatusText());
|
status(this.getStatusText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user