🐞 Font resize doesn't cause layout for lines previously outside the viewport
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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
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
- Open a document
- Change the font size to something large (20)
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeEditApp/CodeEditTextView
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
CodeEditApp/CodeEditTextView#124 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
CodeEditApp/CodeEditTextView#121 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 28/100
CodeEditApp/CodeEditTextView#119 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
CodeEditApp/CodeEditTextView#106 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in CodeEditApp/CodeEditTextView
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
googleapis/google-cloud-swift#1036 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
wultra/mtoken-sdk-ios#253 ·
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100