mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #12752
This commit is contained in:
parent
a5ba48b765
commit
92860bbbc5
|
@ -147,7 +147,10 @@ export class ContentHoverWidget extends Widget implements editorBrowser.IContent
|
|||
|
||||
private updateMaxHeight(): void {
|
||||
const height = Math.max(this._editor.getLayoutInfo().height / 4, 250);
|
||||
const { fontSize, lineHeight } = this._editor.getConfiguration().fontInfo;
|
||||
|
||||
this._domNode.style.fontSize = `${fontSize}px`;
|
||||
this._domNode.style.lineHeight = `${lineHeight}px`;
|
||||
this._domNode.style.maxHeight = `${height}px`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue