CodingFriends / Tincta

Tincta is a one-window text editor for macOS with focus on speed, stability and ease of use.
https://codingfriends.github.io/Tincta/
MIT License
149 stars 21 forks source link

Fixes bug #23 where line number view would overlay the text view #25

Closed greimers closed 4 years ago

greimers commented 4 years ago

The main problem is, that Apple seems to have changed how rulers affect the scroll position. Our line numbers are a ruler in the scroll view. In the past, NSScrollView would automatically inset the content so the ruler does not overlap the content. This has changed but it is unclear when. Anyway, I did the following:

greimers commented 4 years ago

This might break behaviour on very old macOS systems but we have no way to test it.