Skip to content

Commit 0a335ea

Browse files
committed
Add workaround for parameter hints overflow with electron 6
Fixes microsoft#79690 Manually sync size of widget contents with parent
1 parent 5b4776f commit 0a335ea

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/vs/editor/contrib/parameterHints/parameterHintsWidget.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,12 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget,
332332

333333
private updateMaxHeight(): void {
334334
const height = Math.max(this.editor.getLayoutInfo().height / 4, 250);
335-
this.element.style.maxHeight = `${height}px`;
335+
const maxHeight = `${height}px`;
336+
this.element.style.maxHeight = maxHeight;
337+
const wrapper = this.element.getElementsByClassName('wrapper') as HTMLCollectionOf<HTMLElement>;
338+
if (wrapper.length) {
339+
wrapper[0].style.maxHeight = maxHeight;
340+
}
336341
}
337342
}
338343

0 commit comments

Comments
 (0)