开发者

NSScrollView does not contract to fit document view

开发者 https://www.devze.com 2023-01-15 12:48 出处:网络
I have a custom view in an NSScrollView. You could imagine it to be similar to an NSTableView. This document view can reflow its data, so if the scroll view becomes narrower, the document v开发者_Pyth

I have a custom view in an NSScrollView. You could imagine it to be similar to an NSTableView. This document view can reflow its data, so if the scroll view becomes narrower, the document v开发者_Python百科iew can grow in height.

It all works fine, except that if the scrollview widens, making the document view shorter in height, the scrollers do not update, and there is a big gap under the document view. Note that if the scroll view gets narrower, the document view grows in height, and the NSScrollers ARE correctly updated to adapt.

Is this a feature or a bug? How can I make the scrollers/scroll view adapt to the document view frame?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号