• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
      • From: Dave <email@hidden>
References: 
 >Auto Layout, NSScrollView and NSStackView - Adding View to StackView (From: Dave <email@hidden>)
 >Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView (From: Ken Thomases <email@hidden>)
 >Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView (From: Dave <email@hidden>)

  • Prev by Date: Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
  • Next by Date: Re: "Computed segue" in iOS?
  • Previous by thread: Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
  • Next by thread: Re: Auto Layout, NSScrollView and NSStackView - Adding View to StackView
  • Index(es):
    • Date
    • Thread