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

feat(Studio): choose line number padding based on visible rows #83

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakobhellermann
Copy link
Contributor

It works but I don't like the code.

  1. bottomRow is copied to 3 locations. It could be extracted to a function, but one location also wants visualBottomRow, topRow and visualTopRow.
  2. storing previousMaxDigits to prevent Recalc on every scroll event
  3. offscreenLinePadding. Where does the 3 come from? In the Searching... case it expands the padding on line 98, ingame at 97.
2024-09-17.22-28-36.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant