Fix ModelView container child layout issues (#13412)

This commit is contained in:
Charles Gagnon
2020-11-16 10:59:21 -08:00
committed by GitHub
parent c699179e15
commit b57bf53b67
2 changed files with 5 additions and 3 deletions

View File

@@ -157,7 +157,8 @@ export class SchemaCompareMainWindow {
this.sourceName = getEndpointName(this.sourceEndpointInfo); this.sourceName = getEndpointName(this.sourceEndpointInfo);
this.targetName = ' '; this.targetName = ' ';
this.sourceNameComponent = view.modelBuilder.table().withProperties({ this.sourceNameComponent = view.modelBuilder.table().withProperties<azdata.TableComponentProperties>({
data: [],
columns: [ columns: [
{ {
value: this.sourceName, value: this.sourceName,
@@ -167,7 +168,8 @@ export class SchemaCompareMainWindow {
] ]
}).component(); }).component();
this.targetNameComponent = view.modelBuilder.table().withProperties({ this.targetNameComponent = view.modelBuilder.table().withProperties<azdata.TableComponentProperties>({
data: [],
columns: [ columns: [
{ {
value: this.targetName, value: this.targetName,

View File

@@ -361,12 +361,12 @@ export abstract class ContainerBase<T, TPropertyBag extends azdata.ComponentProp
} }
public layout(): void { public layout(): void {
super.layout();
if (this._componentWrappers) { if (this._componentWrappers) {
this._componentWrappers.forEach(wrapper => { this._componentWrappers.forEach(wrapper => {
wrapper.layout(); wrapper.layout();
}); });
} }
super.layout();
} }
abstract setLayout(layout: any): void; abstract setLayout(layout: any): void;