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: Dave <email@hidden>
- Date: Mon, 07 Sep 2015 21:14:13 +0100
Hi Ken,
Thanks a lot for this.
> 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
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’m trying to get this part right before start tweaking the Priorities etc.
> Other than that, you need to set the horizontal hugging priority of the stack view and then the constraints, content hugging priorities, and compression resistances of the views within the detail view to allow them to adjust themselves to the width.
>
Cheers
Dave
_______________________________________________
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