dina
dina

Reputation: 4289

autocomplete suggestion is partly hidden in the editor

I am using monaco for creating an expression one line input, here is how the autocomplete suggestion looks like enter image description here

How can I configure the suggestion box to float above the editor, and not be partly hidden? note: I do not want to increase the height of the editor - it is a one line editor

Upvotes: 2

Views: 988

Answers (2)

dina
dina

Reputation: 4289

I managed to get the autocomplete suggestion pop out of the editor

enter image description here The reason the autocomplete popup was hidden was since I used the ember-monaco package which wraps the monaco component with Iframe
I had to use monaco-editor package directly using the answer here

Upvotes: 1

Mike Lischke
Mike Lischke

Reputation: 53357

That's not possible. The div holding the suggestions is a child of the top level monaco host and hence cannot show outside, without affecting the scrolling behavior of the editor.

Upvotes: 0

Related Questions