Re: scroll bars and visible rect
Re: scroll bars and visible rect
- Subject: Re: scroll bars and visible rect
- From: Graham Cox <email@hidden>
- Date: Sat, 05 Jan 2013 15:00:14 +1100
On 05/01/2013, at 1:08 PM, Andy Lee <email@hidden> wrote:
> Put this all together and clearly the document view's visibleRect does not include any of the area occupied by the scroll bars.
>
> But maybe I am answering the wrong question, in which case... never mind.
I understood the question to mean what you thought as well.
But while the visibleRect does not include the area occupied by the scroll bars, it will change according to whether the scroll bars are shown or hidden. If they're hidden, the clip view expands to take up the room the scrollbars used to occupy, and so the area of the content view gets larger, along with the visibleRect. This must be true since more content is revealed when scrollbars hide (otherwise why do it?).
That's my understanding. It would be easily verified with a simple test case.
--Graham
_______________________________________________
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