make sure to pass the right height to editors, (#154900)

fixes https://github.com/microsoft/vscode/issues/154765
This commit is contained in:
Johannes Rieken
2022-07-12 11:35:25 +02:00
committed by GitHub
parent c9bf4393d5
commit 51507ba87a
@@ -24,7 +24,7 @@ export abstract class CodeEditorView extends Disposable {
readonly model = this._viewModel.map(m => /** @description model */ m?.model);
protected readonly htmlElements = h('div.code-view', [
h('div.title', [
h('div.title', { $: 'header' }, [
h('span.title', { $: 'title' }),
h('span.description', { $: 'description' }),
h('span.detail', { $: 'detail' }),
@@ -48,7 +48,7 @@ export abstract class CodeEditorView extends Disposable {
setStyle(this.htmlElements.root, { width, height, top, left });
this.editor.layout({
width: width - this.htmlElements.gutterDiv.clientWidth,
height: height - this.htmlElements.title.clientHeight,
height: height - this.htmlElements.header.clientHeight,
});
}
// preferredWidth?: number | undefined;