• 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
Why are these layout constraints being ignored?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are these layout constraints being ignored?


  • Subject: Why are these layout constraints being ignored?
  • From: Rob Nikander <email@hidden>
  • Date: Tue, 25 Jun 2013 09:10:00 -0400

Hi,

I don't think I can attach images here, so I'll link to a stackoverflow
question with images of the layout.

http://stackoverflow.com/questions/17288279/why-is-this-nsoutlineview-ignoring-layout-constraints

I create 4 constraints with the desire to pin the NSOutlineView to the
edges of it's superview (the NSWindow's contentView). It works, until I
expand/collapse items in the outline view. Then the constraints are ignored
and the outline shrinks.  Why are they ignored? What is it in the outline
view that is taking priority? It's intrinsicContentSize is (-1,-1) which I
thought meant it could be stretched out to satisfy other constraints.

I may be able to post code if that helps.

thanks,
Rob

(I know that you usually put an NSOutlineView in a NSScrollView, but I've
tried to simplify my example to focus on what I don't understand.)
_______________________________________________

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: Why are these layout constraints being ignored?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: redo: action not in First Responder
  • Next by Date: Re: NSSplitView similar to Xcode's editor/debug area split view
  • Previous by thread: Re: iOS OpenGL ES woes
  • Next by thread: Re: Why are these layout constraints being ignored?
  • Index(es):
    • Date
    • Thread