Skip to content

🐞 Text scrolls underneath ruler #195

Closed

Description

@wjk

Description

Apparently, CodeEditTextView does not fully take into account the size of the left-hand ruler when positioning its content. As a result, when I open a file in CodeEdit, the left-hand side of each line is cut off because it is being drawn underneath the ruler. I can scroll to the right to pull the content out from underneath the ruler, but this cuts off the part of the line at the right side of the screen. This is terribly annoying and makes line-wrap not work properly.

To Reproduce

  1. Open a file in CodeEdit
  2. Observe the cut off text and horizontal scrollbar

Expected Behavior

The text in the text view should appear to the right of the ruler, not under it. There should be no horizontal scrollbar.

Version Information

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

Additional Context

Previously reported as CodeEditApp/CodeEdit#1306.

Screenshots

Screenshot 2023-06-09 at 9 01 14 PM

Screenshot 2023-06-09 at 9 01 00 PM

Activity

  1. added
    bugSomething isn't working
    on Jun 11, 2023
  2. luah5 commented on Jun 12, 2023

    @luah5
    Member

    I'm pretty sure this was fixed in #177, are you running CodeEdit from Xcode or from the latest app release on github?

  3. wjk commented on Jun 12, 2023

    @wjk
    Author

    Latest release on GitHub. I tried to build from source first, but Xcode kept choking on the 70MB xcframework in CodeEditLanguages. It generally just quit downloading entirely, and I know of no good way to get it to resume without deleting the clones and starting over — at which point Xcode usually chokes again. If you have any ideas as to how I could address this, I’m all ears.

  4. wjk commented on Jun 12, 2023

    @wjk
    Author

    Strike that regarding the download errors. I have just got it to work.

  5. thecoolwinter commented on Nov 18, 2023

    @thecoolwinter
    Collaborator

    This should be fixed with #211. The gutter has been reimplemented to be a floating view instead of a ruler view and the text view updated to account for that automatically.

  6. added a commit that references this issue on Dec 9, 2023
    40d8e88
  7. moved this from 🆕 New to 🏁 Complete in CodeEdit Projecton Dec 9, 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