update the content class name depending on who is direct chald of editor part

This commit is contained in:
isidor
2018-06-15 18:02:01 +02:00
parent 98e0b5b66f
commit e362c61eff
@@ -720,6 +720,7 @@ export class EditorPart extends Part implements EditorGroupsServiceImpl, IEditor
this.centeredViewLayout = undefined;
}
toggleClass(this.gridWidget.element, 'content', !active);
if (active) {
this.centeredViewLayout = new CenteredViewLayout(this.parentElement, {
element: this.gridWidget.element,
@@ -728,6 +729,7 @@ export class EditorPart extends Part implements EditorGroupsServiceImpl, IEditor
maximumSize: this.gridWidget.maximumWidth,
onDidChange: Event.None
});
addClass(this.centeredViewLayout.element, 'content');
}
}