Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Strange editor scroll behavior #1306

Closed
wjk opened this issue Jun 10, 2023 · 2 comments
Closed

🐞 Strange editor scroll behavior #1306

wjk opened this issue Jun 10, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@wjk
Copy link

wjk commented Jun 10, 2023

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
@wjk wjk added the bug Something isn't working label Jun 10, 2023
@wjk
Copy link
Author

wjk commented Jun 11, 2023

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.

@wjk
Copy link
Author

wjk commented Jun 11, 2023

@wjk wjk closed this as completed Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🏁 Complete
Development

No branches or pull requests

1 participant