Progmer
Progmer

Reputation: 33

Monaco JavaScript editor - how change intellisense position to be displayed below the line?

I have Monaco editor working with JavaScript content on a web page, I have set up custom type definitions, so the IntelliSense works.

One problem though: hovering mouse above a JavaScript statement close to the top of the editor window displays IntelliSense above the statement, so most of it is positioned outside the editor window - not visible to the user.

Is there a way to change intellisense positioning to force it displayed below the targeted statement?

Upvotes: 1

Views: 551

Answers (1)

memsetzero
memsetzero

Reputation: 666

I don’t think this will help with positioning, but have you tried using:

fixedOverflowWidgets: true

This assigns a position: fixed in widgets, which means content will not get clipped by parent content set to overflow: hidden/auto.

Upvotes: 4

Related Questions