GH-354: Moved the Outline to the left-hand side.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-09-16 11:37:33 +02:00 committed by Akos Kitta
parent 5f5193932f
commit def93ea32f

View File

@ -9,6 +9,14 @@ export class OutlineViewContribution extends TheiaOutlineViewContribution {
@inject(EditorMode) @inject(EditorMode)
protected readonly editorMode: EditorMode; protected readonly editorMode: EditorMode;
constructor() {
super();
this.options.defaultWidgetOptions = {
area: 'left',
rank: 500
};
}
async initializeLayout(app: FrontendApplication): Promise<void> { async initializeLayout(app: FrontendApplication): Promise<void> {
if (this.editorMode.proMode) { if (this.editorMode.proMode) {
return super.initializeLayout(app); return super.initializeLayout(app);