@@ -9,6 +9,7 @@ import { Event } from 'vs/base/common/event';
99import { IView , IViewSize } from 'vs/base/browser/ui/grid/grid' ;
1010import { IDisposable , DisposableStore } from 'vs/base/common/lifecycle' ;
1111import { Color } from 'vs/base/common/color' ;
12+ import { IBoundarySashes } from 'vs/base/browser/ui/grid/gridview' ;
1213
1314export interface CenteredViewState {
1415 leftMarginRatio : number ;
@@ -72,6 +73,19 @@ export class CenteredViewLayout implements IDisposable {
7273 get maximumHeight ( ) : number { return this . view . maximumHeight ; }
7374 get onDidChange ( ) : Event < IViewSize | undefined > { return this . view . onDidChange ; }
7475
76+ private _boundarySashes : IBoundarySashes = { } ;
77+ get boundarySashes ( ) : IBoundarySashes { return this . _boundarySashes ; }
78+ set boundarySashes ( boundarySashes : IBoundarySashes ) {
79+ this . _boundarySashes = boundarySashes ;
80+
81+ if ( ! this . splitView ) {
82+ return ;
83+ }
84+
85+ this . splitView . orthogonalStartSash = boundarySashes . top ;
86+ this . splitView . orthogonalEndSash = boundarySashes . bottom ;
87+ }
88+
7589 layout ( width : number , height : number ) : void {
7690 this . width = width ;
7791 this . height = height ;
@@ -119,6 +133,8 @@ export class CenteredViewLayout implements IDisposable {
119133 orientation : Orientation . HORIZONTAL ,
120134 styles : this . style
121135 } ) ;
136+ this . splitView . orthogonalStartSash = this . boundarySashes . top ;
137+ this . splitView . orthogonalEndSash = this . boundarySashes . bottom ;
122138
123139 this . splitViewDisposables . add ( this . splitView . onDidSashChange ( ( ) => {
124140 if ( this . splitView ) {
0 commit comments