Skip to content

Commit fd16e7c

Browse files
committed
grid: remove orientation from layout call
1 parent 1912b3f commit fd16e7c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/base/browser/ui/centered/centeredViewLayout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function toSplitViewView(view: IView, getHeight: () => number): ISplitViewView {
4242
get maximumSize() { return view.maximumWidth; },
4343
get minimumSize() { return view.minimumWidth; },
4444
onDidChange: Event.map(view.onDidChange, e => e && e.width),
45-
layout: size => view.layout(size, getHeight(), Orientation.HORIZONTAL)
45+
layout: size => view.layout(size, getHeight())
4646
};
4747
}
4848

@@ -81,7 +81,7 @@ export class CenteredViewLayout implements IDisposable {
8181
this.resizeMargins();
8282
}
8383
} else {
84-
this.view.layout(width, height, Orientation.HORIZONTAL);
84+
this.view.layout(width, height);
8585
}
8686
this.didLayout = true;
8787
}

src/vs/base/browser/ui/grid/gridview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface IView {
3030
readonly onDidChange: Event<IViewSize | undefined>;
3131
readonly priority?: LayoutPriority;
3232
readonly snap?: boolean;
33-
layout(width: number, height: number, orientation: Orientation): void;
33+
layout(width: number, height: number): void;
3434
setVisible?(visible: boolean): void;
3535
}
3636

@@ -628,7 +628,7 @@ class LeafNode implements ISplitView, IDisposable {
628628

629629
this._size = size;
630630
this._orthogonalSize = orthogonalSize;
631-
this.view.layout(this.width, this.height, orthogonal(this.orientation));
631+
this.view.layout(this.width, this.height);
632632
}
633633

634634
setVisible(visible: boolean): void {

0 commit comments

Comments
 (0)