fix schema compare results at bottom (#17299)

This commit is contained in:
Kim Santiago
2021-10-07 13:33:10 -07:00
committed by GitHub
parent f875699cd2
commit 6c79b2a8c9

View File

@@ -341,13 +341,6 @@ export class SchemaCompareMainWindow {
width: '98%'
});
this.splitView.addItem(this.differencesTable);
this.splitView.addItem(this.diffEditor);
this.splitView.setLayout({
orientation: 'vertical',
splitViewHeight: 800
});
this.flexModel.removeItem(this.loader);
this.flexModel.removeItem(this.waitText);
this.resetButtons(ResetButtonState.afterCompareComplete);
@@ -355,6 +348,13 @@ export class SchemaCompareMainWindow {
if (this.comparisonResult.differences.length > 0) {
this.flexModel.addItem(this.splitView);
this.splitView.addItem(this.differencesTable);
this.splitView.addItem(this.diffEditor);
this.splitView.setLayout({
orientation: 'vertical',
splitViewHeight: 800
});
// create a map of the differences to row numbers
for (let i = 0; i < data.length; ++i) {
this.diffEntryRowMap.set(this.createDiffEntryKey(this.comparisonResult.differences[i]), i);