• 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
Constraints across sibling stack views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Constraints across sibling stack views?


  • Subject: Constraints across sibling stack views?
  • From: Seth Willits <email@hidden>
  • Date: Sun, 09 Aug 2015 22:14:43 -0700

In my OS X view, I have four popup buttons vertically stacked, each with a label on the left. The labels all have equal width as each other and are right-aligned, and the popups all have equal width as well.

To manage this layout I created four horizontal stack views, one for each label-popup pair, and placed those four stack views into a vertical stack view. At this point, the labels are all sized to fit, as are the popups.


If I add a constraint that says one label should be equal width to another popup, I then get a constraint warning that there's a size mismatch for the label.

What's the proper way to have these labels all equal width, when they're in different NSStackViews?


What I want:
http://www.sethwillits.com/temp/upshot/upshot_7Yna0OGF.png

After dumping into stack views:
http://www.sethwillits.com/temp/upshot/upshot_yX7dV6OL.png



--
Seth Willits




_______________________________________________

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: Constraints across sibling stack views?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Xcode Debugger Shows Incorrect Variable Information
  • Next by Date: [no subject]
  • Previous by thread: Re: Nullability annotation "best practice"
  • Next by thread: Re: Constraints across sibling stack views?
  • Index(es):
    • Date
    • Thread