提交 52eedd56 编写于 作者: J Joao Moreno

distribute view sizes on sash reset

上级 e4dfd217
......@@ -44,6 +44,8 @@ export class SideBySideEditor extends BaseEditor {
DOM.addClass(parent, 'side-by-side-editor');
this.splitview = new SplitView(parent, { orientation: Orientation.HORIZONTAL });
this._register(this.splitview);
this._register(this.splitview.onDidSashReset(() => this.splitview.distributeViewSizes()));
this.detailsEditorContainer = DOM.$('.details-editor-container');
this.splitview.addView({
......
......@@ -767,6 +767,8 @@ class SideBySidePreferencesWidget extends Widget {
DOM.addClass(parentElement, 'side-by-side-preferences-editor');
this.splitview = new SplitView(parentElement, { orientation: Orientation.HORIZONTAL });
this._register(this.splitview);
this._register(this.splitview.onDidSashReset(() => this.splitview.distributeViewSizes()));
this.defaultPreferencesEditorContainer = DOM.$('.default-preferences-editor-container');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册