Skip to content

Minimap doesn't take editor.scrollBeyondLastLine into account and scrolls beyond the last line #28944

Closed

Description

@vvs
  • VSCode Version: Code - Insiders 1.14.0-insider (73015a5, 2017-06-16T05:13:31.107Z)
  • OS Version: Windows_NT ia32 10.0.15063

Steps to Reproduce:

  1. Set "editor.scrollBeyondLastLine": false in settings.
    The editors now cannot scroll beyond the last line, as expected.

  2. 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

  1. added
    editor-minimap
    on Jun 18, 2017
  2. alexdima commented on Jun 19, 2017

    @alexdima
    Member

    I can reproduce, but only in short files:

    screen shot 2017-06-19 at 08 58 59

    In long files (where the minimap itself needs to scroll), I believe this works as expected:
    screen shot 2017-06-19 at 08 59 35

  3. added
    bug
    on Jun 19, 2017
  4. vvs commented on Jun 19, 2017

    @vvs
    Author

    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!

  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. added a commit that references this issue on Sep 6, 2026
    888d72a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-minimapverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions