Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

🐞 Font resize doesn't cause layout for lines previously outside the viewport

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
macos, swift
Domain
desktop

Research direction

Start by reproducing the font-size sequence in CodeEditTextView: open a document, change the size to 20, then to 4, and observe the visible lines before scrolling. Trace the font-size change through visible-line layout; done means all visible lines are laid out at the new size immediately, without a scroll action.

Written by the indexing model from the issue text.

Description

bug
Description

When changing font size the number of lines in the viewport may change if the difference in size is large enough. This causes lines to be displayed, but layout regeneration is not caused until something like a scroll action occurs.

To Reproduce
  1. Open a document
  2. Change the font size to something large (20)
  3. Change the font size to something small (4)

Observe that there are lines visible with the previous font size.

Expected Behavior

Changing the font size should cause layout for all visible lines.

Version Information

CodeEditTextView: main (40d8e88)
macOS: 13.6.1
Xcode: 15.0

Additional Context

No response

Screenshots

https://github.com/CodeEditApp/CodeEditTextView/assets/35942988/2b29e52f-0a22-4db6-bdfa-7908a4478bc0

Dominant language
Swift
Stars
182
Forks
57
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEditTextView

All issues in CodeEditApp/CodeEditTextView

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.