The solution is to add this to the editor options :
fixedOverflowWidgets: true,
https://microsoft.github.io/monaco-editor/typedoc/enums/editor.EditorOption.html#fixedOverflowWidgets