提交 0a335ea6 编写于 作者: M Matt Bierner

Add workaround for parameter hints overflow with electron 6

Fixes #79690

Manually sync size of widget contents with parent
上级 5b4776fc
......@@ -332,7 +332,12 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget,
private updateMaxHeight(): void {
const height = Math.max(this.editor.getLayoutInfo().height / 4, 250);
this.element.style.maxHeight = `${height}px`;
const maxHeight = `${height}px`;
this.element.style.maxHeight = maxHeight;
const wrapper = this.element.getElementsByClassName('wrapper') as HTMLCollectionOf<HTMLElement>;
if (wrapper.length) {
wrapper[0].style.maxHeight = maxHeight;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册