mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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.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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user