Skip to content

Commit 87bf10c

Browse files
authored
only adjust top when resizing if widget is rendered above (microsoft#241729)
fix microsoft#239030
1 parent 6f88621 commit 87bf10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/suggest/browser/simpleSuggestWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export class SimpleSuggestWidget<TModel extends SimpleCompletionModel<TItem>, TI
749749

750750
this._listElement.style.width = `${width}px`;
751751
this.element.layout(height, width);
752-
if (this._cursorPosition) {
752+
if (this._cursorPosition && this._preference === WidgetPositionPreference.Above) {
753753
this.element.domNode.style.top = `${this._cursorPosition.top - height}px`;
754754
}
755755
this._positionDetails();

0 commit comments

Comments
 (0)