Skip to content

Commit

Permalink
Fixes #209251
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Apr 2, 2024
1 parent 3289aba commit 1c26e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/browser/widget/diffEditor/diffEditorWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export class DiffEditorWidget extends DelegatingEditor implements IDiffEditor {

private readonly elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$('span', {}, 'No Changes')]),
h('div.editor.original@original', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', zIndex: '1', } }),
h('div.editor.original@original', { style: { position: 'absolute', height: '100%', } }),
h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%', } }),
h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
]);
private readonly _diffModel = observableValue<DiffEditorViewModel | undefined>(this, undefined);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class DiffEditorGutter extends Disposable {

public readonly width = derived(this, reader => this._hasActions.read(reader) ? width : 0);

private readonly elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px', zIndex: '0' } }, []);
private readonly elements = h('div.gutter@gutter', { style: { position: 'absolute', height: '100%', width: width + 'px' } }, []);

constructor(
diffEditorRoot: HTMLDivElement,
Expand Down

0 comments on commit 1c26e87

Please sign in to comment.