[GH-ISSUE #71] [code] Resize the gutter view according to line number #21

Closed
opened 2026-05-06 13:14:29 +02:00 by BreizhHardware · 0 comments

Originally created by @Lauryy06 on GitHub (Oct 31, 2021).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/71

Make the gutter view in the code app can show the line number if it is superior to 100. For the moment, it draw only the last two digits.
image
This is an easy issue for newcomers, the file to edit is apps/code/editor_view.cpp and you must modify the methods minimalSizeForOptimalDisplay and drawRect.

Originally created by @Lauryy06 on GitHub (Oct 31, 2021). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/71 Make the gutter view in the code app can show the line number if it is superior to 100. For the moment, it draw only the last two digits. ![image](https://user-images.githubusercontent.com/80424145/139600442-5f2cdcd5-94ff-4c7d-a78c-5ef7590c0afc.png) This is an easy issue for newcomers, the file to edit is apps/code/editor_view.cpp and you must modify the methods `minimalSizeForOptimalDisplay` and `drawRect`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#21
No description provided.