• 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: scroll bars and visible rect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: scroll bars and visible rect
      • From: Andy Lee <email@hidden>
References: 
 >scroll bars and visible rect (From: koko <email@hidden>)
 >Re: scroll bars and visible rect (From: Mike Abdullah <email@hidden>)
 >Re: scroll bars and visible rect (From: koko <email@hidden>)
 >Re: scroll bars and visible rect (From: Kyle Sluder <email@hidden>)
 >Re: scroll bars and visible rect (From: koko <email@hidden>)
 >Re: scroll bars and visible rect (From: Graham Cox <email@hidden>)
 >Re: scroll bars and visible rect (From: Graham Cox <email@hidden>)
 >Re: scroll bars and visible rect (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Optimal height for WebView
  • Next by Date: Re: scroll bars and visible rect
  • Previous by thread: Re: scroll bars and visible rect
  • Next by thread: Re: scroll bars and visible rect
  • Index(es):
    • Date
    • Thread