• 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
Re: Yet another autolayout question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another autolayout question


  • Subject: Re: Yet another autolayout question
  • From: Dragan Milić <email@hidden>
  • Date: Fri, 13 Nov 2015 10:43:47 +0100

On pet 13.11.2015., at 05.18, Ken Thomases wrote:

> Try, as an experiment, leaving out the aspect ratio constraint.  If that changes the split view behavior, try putting it back but at a priority lower than the split view holding priorities.
>
> I suspect the problem is that, as the video player is forced to shrink, it can't maintain its _exact_ aspect ratio (in part because the auto layout system tries to maintain whole-pixel sizes).  Since the aspect ratio constraint is at a higher priority than the split view holding priorities, auto layout prefers to break those before breaking it.  Once it does decide to break the aspect ratio constraint, it still tries to get as close as possible, which is why the player does maintain its aspect ratio as far as the eye can tell.

Thanks for the suggestion, but unfortunately that didn’t help :-(  What I fail to understand is why splitView’s subviews holding priorities would matter at all, especially while dragging its slider. If I understand documentation correctly, holding priorities of splitView’s subviews matter only when the splitView is being resized (in affecting direction) as a whole, that is as a consequence or its superview/window being resized. Why would holding priorities matter when a slider is being dragged by a user?

-- Dragan
_______________________________________________

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: Yet another autolayout question
      • From: Ken Thomases <email@hidden>
References: 
 >Yet another autolayout question (From: Dragan Milić <email@hidden>)
 >Re: Yet another autolayout question (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Yet another autolayout question
  • Next by Date: Re: Yet another autolayout question
  • Previous by thread: Re: Yet another autolayout question
  • Next by thread: Re: Yet another autolayout question
  • Index(es):
    • Date
    • Thread