monaco-collab-ext
monaco-collab-ext copied to clipboard
Tooltip overflow
When remote cursor is added at the last line of the editor (see red cursor at the screenshot) the tooltip is hidden:

Obviously it happens only when there is not enough space at the editor bottom. But I guess the behaviour in this particular case should be the same like with a completion menu. Tooltip shouldn't be cut by the editor borders.
There is a flag IContentWidget.allowEditorOverflow which could help to resolve the problem, however I'm not sure.
Sorry for the long delay. In our other editors we make the tooltip change to place above the cursor when it is near the bottom. I will take a look.
In some cases placing the tooltip above the caret won't fix the issue (you can see that remote cursor is also trimmed on the left):

Completion works fine under the same conditions:

Yes. I think the intended behavior would be that the remote cursor moves up / down and left / right to avoid the border of the editor.