bazingaedward/monaco-editor-vue3

Unnecessary blank space at the end

Closed this issue · 2 comments

The scroll appears after I press enter on the first line so when I write a lot of lines, there is a blank space at the end of the editor when I scroll down. I think the scroll should appear after I press enter in the last line of the editor according to the height. How to solve this?

Hi,
I ran into the same problem and did some digging. If you pass scrollBeyondLastLine: false to the options prop it works.

It works. Thank you.