mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-28 08:04:00 +01:00
make sure to pass the right height to editors, (#154900)
fixes https://github.com/microsoft/vscode/issues/154765
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user