放大的 NSScrollView 中的 NSTextView 在调整大小时崩溃

时间:2021-03-20 11:52:00

标签: macos nstextview nsscrollview

这与 How to fix NSTextView's weird sizing inside a magnified NSScrollView 类似,但我的问题似乎略有不同,建议的解决方案对我不起作用。

基本上,我在 NSScrollView 中有一个 NSTextView 放大倍数。使用双指缩放手势放大然后调整窗口大小会导致崩溃并显示错误 The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window.

我制作了一个视频来说明这里的问题:https://youtu.be/M_JRQI2oDaY

项目在这里:https://github.com/angstsmurf/spatterlight/tree/helpviewtest

(分支 helpviewtest 是为此问题创建的精简测试用例。)

0 个答案:

没有答案
相关问题