提交 89bf5a62 编写于 作者: D Daniel Imms

Fix terminal panel resize

Fixes #46577
上级 49c611af
......@@ -149,22 +149,16 @@ class SplitPaneContainer {
}
public layout(width: number, height: number): void {
const resizeCallback = () => {
this._width = width;
this._height = height;
if (this.orientation === Orientation.HORIZONTAL) {
this._children.forEach(c => c.orthogonalLayout(height));
this._splitView.layout(width);
} else {
this._children.forEach(c => c.orthogonalLayout(width));
this._splitView.layout(height);
}
};
if (this._isManuallySized) {
resizeCallback();
this._width = width;
this._height = height;
if (this.orientation === Orientation.HORIZONTAL) {
this._children.forEach(c => c.orthogonalLayout(height));
this._splitView.layout(width);
} else {
this._withDisabledLayout(resizeCallback);
this._children.forEach(c => c.orthogonalLayout(width));
this._splitView.layout(height);
}
if (!this._isManuallySized) {
this.resetSize();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册