Render before adding to the splitView (#10261)

This commit is contained in:
Amir Omidi
2020-05-05 12:05:12 -07:00
committed by GitHub
parent 53cb97af9b
commit 5105694fb3

View File

@@ -344,9 +344,10 @@ export class AccountDialog extends Modal {
attachPanelStyler(providerView, this._themeService);
const insertIndex = this._splitView.length;
providerView.render();
// Append the list view to the split view
this._splitView.addView(providerView, Sizing.Distribute, insertIndex);
providerView.render();
providerView.index = insertIndex;
this._splitView.layout(DOM.getContentHeight(this._container));