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

问题描述

这与 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 是为此问题创建的精简测试用例。)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)