如何在折叠NSSplitView后修复视图的高度? [英] How do I fix the height of my view after collapsing NSSplitView?

查看:353
本文介绍了如何在折叠NSSplitView后修复视图的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个NSSplitView与NSScrollView在底部视图。问题是当我折叠,然后重新打开(un-collapse)底部视图,滚动视图的高度超过了底部视图的高度,所以顶部视图的顶部被剪辑。我有我的滚动视图和我的分割视图设置为自动调整IB中的所有方向。在解压缩之后,我是否需要调整该滚动视图的高度,或者我设置了一个调整大小属性错误,还是别的什么?

I've got an NSSplitView with an NSScrollView in the bottom view. The problem is when I collapse, and then re-open (un-collapse) the bottom view, the height of the scroll view is beyond the height of that bottom view so the top part of the scoll view is being clipped. I've got my scroll view and my split view set to autoresize in all directions in IB. Do I need to adjust the height of that scroll view after the un-collapse or am I setting a resizing property wrong, or something else? Below is a before and after image of what the clipping looks like.

折叠之前:

折叠后重新开启底部视图中的滚动条被剪切)

After Collapse and re-open (notice the scroll bar in the bottom view is clipped)

推荐答案

我有同样的问题。使用BWToolkit的拆分视图修复它,它允许您确定每个视图的最大和最小高度。

I have the same problem. Fixed it using BWToolkit's split views, which allow you to determine the maximum and minimum height for each view.

这篇关于如何在折叠NSSplitView后修复视图的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆