Re: ambiguous layout for documentView in NSScrollView
Re: ambiguous layout for documentView in NSScrollView
- Subject: Re: ambiguous layout for documentView in NSScrollView
- From: iain <email@hidden>
- Date: Sun, 17 Mar 2013 01:37:35 +0000
On 17 Mar 2013, at 12:38 AM, Chuck Soper <email@hidden>
> Each subview has an "NSLayoutConstraint * widthConstraint;" ivar that
> holds the absolute width. Visually, it looks like this:
> @"H:[subview(==120)]"
>
>
> I also added some minimum width and height constraints that look like this:
> @"H:[subview(>=80)]" and @"V:[subview(>=70)]"
>
This is the source of the ambiguity, you're requiring the width to be exactly equal 120 and be anything >=80.
It's working in your case because the constraint it is breaking is the==120 one but I don't know if there is a guarantee that it will always break that one.
I'm not sure why you would have to set both the constraints, setting the absolute width seems like something that should be done via the intrinsic size.
Iain
_______________________________________________
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