mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Fix ModelView addItem/withItem ordering (#14205)
This commit is contained in:
@@ -152,7 +152,7 @@ export class CreateProjectFromDatabaseDialog {
|
|||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
const connectionRow = view.modelBuilder.flexContainer().withItems([serverLabel, sourceConnectionTextBox], { flex: '0 0 auto', CSSStyles: { 'margin-right': '10px', 'margin-bottom': '-5px', 'margin-top': '-10px' } }).withLayout({ flexFlow: 'row', alignItems: 'center' }).component();
|
const connectionRow = view.modelBuilder.flexContainer().withItems([serverLabel, sourceConnectionTextBox], { flex: '0 0 auto', CSSStyles: { 'margin-right': '10px', 'margin-bottom': '-5px', 'margin-top': '-10px' } }).withLayout({ flexFlow: 'row', alignItems: 'center' }).component();
|
||||||
connectionRow.insertItem(selectConnectionButton, 2, { CSSStyles: { 'margin-right': '0px', 'margin-bottom': '-5px', 'margin-top': '-10px' } });
|
connectionRow.addItem(selectConnectionButton, { CSSStyles: { 'margin-right': '0px', 'margin-bottom': '-5px', 'margin-top': '-10px' } });
|
||||||
|
|
||||||
return connectionRow;
|
return connectionRow;
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@ export class CreateProjectFromDatabaseDialog {
|
|||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
const projectLocationRow = view.modelBuilder.flexContainer().withItems([projectLocationLabel, this.projectLocationTextBox], { flex: '0 0 auto', CSSStyles: { 'margin-right': '10px', 'margin-bottom': '-10px' } }).withLayout({ flexFlow: 'row', alignItems: 'center' }).component();
|
const projectLocationRow = view.modelBuilder.flexContainer().withItems([projectLocationLabel, this.projectLocationTextBox], { flex: '0 0 auto', CSSStyles: { 'margin-right': '10px', 'margin-bottom': '-10px' } }).withLayout({ flexFlow: 'row', alignItems: 'center' }).component();
|
||||||
projectLocationRow.insertItem(browseFolderButton, 2, { CSSStyles: { 'margin-right': '0px', 'margin-bottom': '-10px' } });
|
projectLocationRow.addItem(browseFolderButton, { CSSStyles: { 'margin-right': '0px', 'margin-bottom': '-10px' } });
|
||||||
|
|
||||||
return projectLocationRow;
|
return projectLocationRow;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ export abstract class ViewBase extends AngularDisposable implements IModelView {
|
|||||||
initial: true
|
initial: true
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
this.addToContainer(component.id, items);
|
this.addToContainer(component.id, items, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return descriptor;
|
return descriptor;
|
||||||
|
|||||||
Reference in New Issue
Block a user