Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Scrollbars move to the top of the file when splitting panes or closing split panes #13265

@skywind3000

Description

@skywind3000

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

  • When I open a large file and move the cursor to the bottom, and then click View->Panes->Split Right.
    I found the scroll bar position of previous pane rewind to the top but the cursor is still on the last line.

Steps to Reproduce

  1. Start Atom using atom --safe from cmd.exe
  2. Open any file and resize the Atom window so you have a vertical scrollbar visible
  3. Scroll to the middle of an opened file
  4. Run pane:split-right-and-copy-active-item
  5. Expected: The scrollbars to stay in the same position for both files. Actual: The scrollbars in both files moves to the top of the file
  6. Close the right pane
  7. Expected: The scrollbar position of the first file to not change. Actual: The scrollbar in the first file is displayed at the top of the file.

scrollbar

Expected behavior: [What you expected to happen]
scroll bar position should no change

Actual behavior: [What actually happened]
I found the scroll bar position of previous pane rewind to the top but the cursor is still on the last line.

Versions

Atom : 1.12.0
Electron: 1.3.6
Chrome : 52.0.2743.82
Node : 6.3.0

atom-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriagedwindowsIssues that occur on Windows but not on other platforms.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions