Skip to content

Commit

Permalink
fix: distribute space evenly when adding a pane (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley authored Nov 25, 2021
1 parent 70260c6 commit 6feb767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/split-view/split-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ export class SplitView extends EventEmitter implements Disposable {
if (!skipLayout) {
this.relayout();
}

if (!skipLayout && typeof size !== "number" && size.type === "distribute") {
this.distributeViewSizes();
}
}

public removeView(index: number, sizing?: Sizing): View {
Expand Down

0 comments on commit 6feb767

Please sign in to comment.