Skip to content

Commit

Permalink
Set suggestion container position to fixed (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
planger authored Nov 27, 2023
1 parent b122673 commit 3cf3749
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
import { AutocompleteResult, AutocompleteSettings } from 'autocompleter';
import {
Action,
GModelRoot,
ILogger,
LabeledAction,
GModelRoot,
ValidationStatus,
codiconCSSClasses,
matchesKeystroke,
toArray
} from '@eclipse-glsp/sprotty';
import { AutocompleteResult, AutocompleteSettings } from 'autocompleter';
import { AutoCompleteValue } from './auto-complete-actions';
import { IValidationDecorator } from './validation-decorator';

Expand Down Expand Up @@ -196,6 +196,7 @@ export class AutoCompleteWidget {
maxHeight: number
): void {
// move container into our UIExtension container as this is already positioned correctly
container.style.position = 'fixed';
if (this.containerElement) {
this.containerElement.appendChild(container);

Expand Down

0 comments on commit 3cf3749

Please sign in to comment.