Re: Help: NSScrollView is resizing its documentView down to (0, 0)
Re: Help: NSScrollView is resizing its documentView down to (0, 0)
- Subject: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
- From: Kyle Sluder <email@hidden>
- Date: Thu, 07 May 2015 11:32:16 -0500
On Thu, May 7, 2015, at 10:52 AM, Jens Alfke wrote:
>
> > On May 6, 2015, at 9:10 PM, Luther Baker <email@hidden> wrote:
> >
> > I'm probably missing something ... but fundamentally, the whole point of constraints between the scrollview and its children is so that the scrollview knows how big to make its contentSize. It sounds like you've got this flipped ... the scrollview is not trying to constrain the size of the document at all - when using autolayout, the scrollview is dynamically trying to determine it's *own* contentSize.
>
> But would it use constraints for that?'
Yes, NSScrollView has supported using constraints between the document
view and the clip view to specify the contentSize since 10.8.
<https://developer.apple.com/library/mac/releasenotes/AppKit/RN-AppKitOlderNotes/>
(section Auto Layout NSSplitView Improvements)
--Kyle Sluder
_______________________________________________
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