File tree Expand file tree Collapse file tree
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2211,8 +2211,10 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
22112211 }
22122212 }
22132213
2214- editor . getContainer ( ) . style ( { 'margin-left' : `${ editorPosition } px` , 'width' : `${ editorWidth } px` } ) ;
2215- editor . getContainer ( ) . style ( 'border-color' , this . getColor ( EDITOR_GROUP_BORDER ) || this . getColor ( contrastBorder ) ) ;
2214+ const editorContainer = editor . getContainer ( ) ;
2215+ editorContainer . style ( 'margin-left' , this . centeredEditorActive ? `${ editorPosition } px` : null ) ;
2216+ editorContainer . style ( 'width' , this . centeredEditorActive ? `${ editorWidth } px` : null ) ;
2217+ editorContainer . style ( 'border-color' , this . centeredEditorActive ? this . getColor ( EDITOR_GROUP_BORDER ) || this . getColor ( contrastBorder ) : null ) ;
22162218 editor . layout ( new Dimension ( editorWidth , editorHeight ) ) ;
22172219 }
22182220 }
You can’t perform that action at this time.
0 commit comments