On Feb 8, 2016, at 15:07 , Dragan Milić <[email protected]> wrote:
> 
> I’d be very thankful to anyone having the time to look at the video and try 
> to figure out what could be the root of the problem. If after watching anyone 
> has questions about implementation, code, etc, I’d be happy to provide more 
> information.

I’m really lousy at understanding autolayout, but I did finally go watch the 
video, and I think the problem is that your layout is ambiguous — though 
perhaps not in a way that autolayout thinks is worth complaining about.

Your argument on how the more complex vertical split structure should work is 
hierarchical — you expect that the 2 parts of the outer split should resize 
proportionally, and then that the 2 parts of the inner split should resize 
proportionally *within the proportionate resizing already done*. This isn’t my 
understanding of how autolayout works.

AFAIK, autolayout considers all constraints with priority 250 equally, 
regardless of where they come from. If that’s true, then vertical resizing sees 
3 areas that can stretch vertically, all with priority 250. Since there are no 
other constraints on this, autolayout can do whatever it wants with the pieces, 
with the results you saw. I don’t think it’s obliged to “share” the pain 
equally between the candidate adjustments, although it may do so if it thinks 
that’s the best compromise.

What happens if you decrease the holding priority by 1 for each level of 
nesting in your split views? It sorta seems to me that should do what you want.

But, as I say, autolayout confounds me, and autolayout in split views confounds 
me even more, so …


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to