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 12:13:07 +0000
On Sun, Mar 17, 2013 at 1:50 AM, Kyle Sluder <email@hidden> wrote:
> On Sat, Mar 16, 2013, at 06:37 PM, iain wrote:
> >
> >
> > 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.
>
> This is not ambiguous. The ">= 80" constraint is simply irrelevant,
> because it is completely superseded by the "== 120" constraint.
>
>
You are, of course, correct. Apologies.
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