Skip to content

Console/Output don't maintain their scroll position when hide/show panel, terminal does #12937

Closed

Description

@roblourens
  • Have some output in the Debug Console or Output pane.
  • Scroll up
  • Hide the panel
  • Show the panel
  • Now they are scrolled all the way down

That might be ok, but if you repeat the same steps for the terminal, it maintains its scroll position across show/hide. I like that behavior better. Either way, I think it should be consistent.

Activity

  1. added
    terminal
    on Sep 28, 2016
  2. removed
    terminal
    on Sep 28, 2016
  3. isidorn commented on Sep 28, 2016

    @isidorn

    We should maintain scroll position

  4. Tyriar commented on Sep 28, 2016

    @Tyriar
    Contributor

    So the terminal had an issue with this recently where hiding and displaying was keeping the viewport where it was but the scroll bar was being pushed to the top. The reason this happens is because the element is detached and re-attached to the DOM which does not maintain the scrollTop position.

    Might be useful in finding a fix: #12574, xtermjs/xterm.js#291

  5. added
    bug
    on Sep 28, 2016
  6. added
    verified
    on Oct 27, 2016
  7. locked and limited conversation to collaborators on Nov 18, 2017
  8. added
    debug
    on May 17, 2018
  9. added a commit that references this issue on Sep 6, 2026
    b039b84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions