Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
- Subject: Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
- From: Ken Thomases <email@hidden>
- Date: Mon, 07 Sep 2015 16:12:45 -0500
On Sep 7, 2015, at 3:14 PM, Dave <email@hidden> wrote:
> Thanks a lot for this.
You're welcome.
>> You should set leading and trailing constraints between the stack view and the clip view so that the stack view is as wide as the clip view.
>
> I’ve got the following constraints on the StackView:
>
> Horizontal Space StackView.Trailing Equal FlippedClipView.Trailing 0, 1000, 1
Later corrected to:
> Horizontal Space StackView.Trailing Equal FlippedClipView.Trailing -1, 1000, 1 *****Constant = -1
> Vertical Space StackView.Top Equal FlippedClipView.top 0, 1000, 1
> Horizontal Space StackView.Leading Equal FlippedClipView.Leading 0, 1000, 1
>
> Is this correct or do I need to change or add something?
I would say the trailing constraint would be better with constant 0. I'm not sure why it's -1. Either way, though, the difference will be slight and can be changed later if you find a cause to without disrupting anything else.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden