mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -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();
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user