mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 02:26:04 +00:00
Fixes #197942
This commit is contained in:
parent
d68e8f4016
commit
666f8ddefc
|
@ -125,7 +125,7 @@ export class DiffEditorItemTemplate extends Disposable implements IPooledObject<
|
|||
this._elements.root.style.height = `${verticalRange.length}px`;
|
||||
this._elements.root.style.width = `${width}px`;
|
||||
this._elements.root.style.position = 'absolute';
|
||||
this._editor.layout({ width, height: verticalRange.length });
|
||||
this._editor.layout({ width, height: verticalRange.length - (this._elements.root.clientHeight - this._elements.editor.clientHeight) });
|
||||
this._editor.getOriginalEditor().setScrollTop(editorScroll);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue