CodeEditApp / CodeEditApp/CodeEditTextView

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

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Swift
Stelle
182
Fork
54
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.