Skip to content

🐞 Strange editor scroll behavior #1306

Closed

Description

@wjk

Description

When I have line-wrap turned on, CodeEdit does not correctly wrap lines of text. There is a small left/right scrolling (about the width of four monospaced characters) in CodeEdit’s text views. When I resize the window, text rewraps as expected, but the left/right scroll does not disappear. This also means that the rightmost edges of wrapped lines of text are cut off unless I scroll to the right. The below screenshots should illustrate this.

To Reproduce

  1. Enable line-wrap
  2. Open a file with a long line in it
  3. Scroll left and right within in the text editor area

Expected Behavior

This shouldn’t happen, and the entire line of text should be visible without having to scroll to the right.

Version Information

CodeEdit: 0.0.3-alpha (32)
macOS: 13.4 (22F66)
Xcode: 15.0 (15A5160n)

Additional Context

No response

Screenshots

Screenshot 2023-06-09 at 9 01 00 PM Screenshot 2023-06-09 at 9 01 14 PM

Activity

  1. added
    bugSomething isn't working
    on Jun 10, 2023
  2. wjk commented on Jun 11, 2023

    @wjk
    Author

    I have just noticed that this bizarre left/right scroll behavior is exactly the width of the gutter with the line numbers in it; the left-hand side is cut off because it is displaying underneath the gutter. Furthermore, whenever I open a file, it always opens cut-off on the left.

  3. wjk commented on Jun 11, 2023

    @wjk
    Author
  4. moved this from 🆕 New to 🏁 Complete in CodeEdit Projecton Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions