From cdd2bde52f9ef40f1c8501a47af735ebc1924824 Mon Sep 17 00:00:00 2001 From: SrTobi Date: Tue, 20 Feb 2018 15:13:47 +0100 Subject: [PATCH] Revert "added a 1px border to indicate the sashes" This reverts commit caf6e5e5962a42adc4fca015b93fba8b74d1e7f7. --- .../browser/parts/editor/editorGroupsControl.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/vs/workbench/browser/parts/editor/editorGroupsControl.ts b/src/vs/workbench/browser/parts/editor/editorGroupsControl.ts index f665e0f86e8..5265fcdd01b 100644 --- a/src/vs/workbench/browser/parts/editor/editorGroupsControl.ts +++ b/src/vs/workbench/browser/parts/editor/editorGroupsControl.ts @@ -1989,8 +1989,7 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro case this.centeredEditorSashLeft: return this.centeredEditorPosition; case this.centeredEditorSashRight: - // the border indicating the sash is 1px right to the end position - return this.centeredEditorEndPosition + 1; + return this.centeredEditorEndPosition; default: return 0; } @@ -2153,12 +2152,6 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro this.centeredEditorSashLeft.show(); this.centeredEditorSashRight.show(); - const centeredEditor = this.visibleEditors[Position.ONE]; - // TODO: replace the color - centeredEditor.getContainer().style('border-color', '#383838'); - centeredEditor.getContainer().style('border-left-width', '1px'); - centeredEditor.getContainer().style('border-right-width', '1px'); - // no size set yet. Calculate a default value if (this.centeredEditorPreferedSize === -1) { this.resetCenteredEditor(false); @@ -2202,9 +2195,6 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro if (this.centeredEditorActive) { editorWidth = this.centeredEditorSize; editorPosition = this.centeredEditorPosition; - - // adjust the position because of the border - editorPosition--; } if (position !== Position.ONE) { @@ -2215,8 +2205,6 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro } } - editor.getContainer().style('border-left-style', this.centeredEditorActive ? 'solid' : 'none'); - editor.getContainer().style('border-right-style', this.centeredEditorActive ? 'solid' : 'none'); editor.getContainer().style({ 'margin-left': editorPosition + 'px', 'width': editorWidth + 'px' }); editor.layout(new Dimension(editorWidth, editorHeight)); } -- GitLab