CodeEditApp / CodeEditApp/CodeEditTextView

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

未關閉
#17 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Swift
星號
182
分支
54
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。