NSScrollView在调整大小时向下滚动? [英] NSScrollView scroll downward when resizing?
本文介绍了NSScrollView在调整大小时向下滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个NSScrollView与自定义视图里面,当我调整NSScrollView的大小,高度增长,它向上滚动。除非有一个更简单的方法,我可能需要注册一个通知,看看视图是否改变大小,然后调整scrollPoint:到一个新的点。
I have a NSScrollView with a custom view inside and when I resize the NSScrollView, the height grows and it scrolls upward. Unless there is an easier way, I'll probably have to register a notification to see if the view changes size and then adjust the scrollPoint: to a new point. I'm having trouble getting method to work smoothly.
推荐答案
这个问题不时出现,因为它不明显。
This question comes up from time to time, because it's not obvious.
如果 [contentView isFlipped ] == YES
。
这篇关于NSScrollView在调整大小时向下滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文