Skip to content

Commit

Permalink
Fixes #192558
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet authored and pull[bot] committed Sep 25, 2023
1 parent 7a54840 commit 4bb7e77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/editor/browser/widget/diffEditor/diffEditorSash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class DiffEditorSash extends Disposable {
const enabled = this._options.enableSplitViewResizing.read(reader);
this._sash.state = enabled ? SashState.Enabled : SashState.Disabled;
this.sashLeft.read(reader);
this._dimensions.height.read(reader);
this._sash.layout();
}));
}
Expand All @@ -55,6 +56,7 @@ export class DiffEditorSash extends Disposable {
this._sash.orthogonalEndSash = sashes.bottom;
}

/** @pure */
private _computeSashLeft(desiredRatio: number, reader: IReader | undefined): number {
const contentWidth = this._dimensions.width.read(reader);
const midPoint = Math.floor(this._options.splitViewDefaultRatio.read(reader) * contentWidth);
Expand Down

0 comments on commit 4bb7e77

Please sign in to comment.