未验证 提交 fd16e7cc 编写于 作者: J Joao Moreno

grid: remove orientation from layout call

上级 1912b3ff
......@@ -42,7 +42,7 @@ function toSplitViewView(view: IView, getHeight: () => number): ISplitViewView {
get maximumSize() { return view.maximumWidth; },
get minimumSize() { return view.minimumWidth; },
onDidChange: Event.map(view.onDidChange, e => e && e.width),
layout: size => view.layout(size, getHeight(), Orientation.HORIZONTAL)
layout: size => view.layout(size, getHeight())
};
}
......@@ -81,7 +81,7 @@ export class CenteredViewLayout implements IDisposable {
this.resizeMargins();
}
} else {
this.view.layout(width, height, Orientation.HORIZONTAL);
this.view.layout(width, height);
}
this.didLayout = true;
}
......
......@@ -30,7 +30,7 @@ export interface IView {
readonly onDidChange: Event<IViewSize | undefined>;
readonly priority?: LayoutPriority;
readonly snap?: boolean;
layout(width: number, height: number, orientation: Orientation): void;
layout(width: number, height: number): void;
setVisible?(visible: boolean): void;
}
......@@ -628,7 +628,7 @@ class LeafNode implements ISplitView, IDisposable {
this._size = size;
this._orthogonalSize = orthogonalSize;
this.view.layout(this.width, this.height, orthogonal(this.orientation));
this.view.layout(this.width, this.height);
}
setVisible(visible: boolean): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册