You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Minimap doesn't take editor.scrollBeyondLastLine into account and scrolls beyond the last line #28944
Set "editor.scrollBeyondLastLine": false in settings.
The editors now cannot scroll beyond the last line, as expected.
Try to scroll via minimap, the minimap still scrolls beyond the last line, which looks weird and incorrect. The minimap preview shows that we are past the file content, but the actual editor shows that we are not past the last line.
Expected behavior:
Minimap should honor the editor settings w.r.t. scrolling past the last time. If editor cannot scroll past the last line, minimap should do the same. At the very minimum, if this sync is not desired for some reason, minimap settings should be introduced that disables scrolling past the last line, e.g. editor.minimap.scrollBeyondLastLine
Activity
alexdima commentedon Jun 19, 2017
I can reproduce, but only in short files:
In long files (where the minimap itself needs to scroll), I believe this works as expected:

vvs commentedon Jun 19, 2017
Indeed, the problem occurs when the minimap's content height is less then the height of the editor.
As soon as there is empty space in minimap (at the bottom), the problem occurs.
Thanks for looking into that!
Fixes microsoft#28944: Minimap doesn't take editor.scrollBeyondLastLi…