This commit is contained in:
Joao Moreno 2016-10-26 15:42:51 +02:00
parent a5ba48b765
commit 92860bbbc5

View file

@ -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`;
}
}