Skip to content

Commit

Permalink
distribute view sizes on sash reset
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jun 13, 2018
1 parent e4dfd21 commit 52eedd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/browser/parts/editor/sideBySideEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 52eedd5

Please sign in to comment.