mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Fix ModelView container child layout issues (#13412)
This commit is contained in:
@@ -157,7 +157,8 @@ export class SchemaCompareMainWindow {
|
||||
|
||||
this.sourceName = getEndpointName(this.sourceEndpointInfo);
|
||||
this.targetName = ' ';
|
||||
this.sourceNameComponent = view.modelBuilder.table().withProperties({
|
||||
this.sourceNameComponent = view.modelBuilder.table().withProperties<azdata.TableComponentProperties>({
|
||||
data: [],
|
||||
columns: [
|
||||
{
|
||||
value: this.sourceName,
|
||||
@@ -167,7 +168,8 @@ export class SchemaCompareMainWindow {
|
||||
]
|
||||
}).component();
|
||||
|
||||
this.targetNameComponent = view.modelBuilder.table().withProperties({
|
||||
this.targetNameComponent = view.modelBuilder.table().withProperties<azdata.TableComponentProperties>({
|
||||
data: [],
|
||||
columns: [
|
||||
{
|
||||
value: this.targetName,
|
||||
|
||||
@@ -361,12 +361,12 @@ export abstract class ContainerBase<T, TPropertyBag extends azdata.ComponentProp
|
||||
}
|
||||
|
||||
public layout(): void {
|
||||
super.layout();
|
||||
if (this._componentWrappers) {
|
||||
this._componentWrappers.forEach(wrapper => {
|
||||
wrapper.layout();
|
||||
});
|
||||
}
|
||||
super.layout();
|
||||
}
|
||||
|
||||
abstract setLayout(layout: any): void;
|
||||
|
||||
Reference in New Issue
Block a user