Re: Getting max scroll range (Gecko 2.0)

Boris Zbarsky <[email protected]> Wed, 11 May 2011 02:35:18 -0400
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
On 5/11/11 2:22 AM, yakobom wrote:
> I have my own scrollbar, I need these in order to set it up and in order to operate it. I need to know exactly how much absolute scrolling there is

GetScrollMaxY() will tell you that.  That's the largest distance you can 
scroll the page by.

 > what size should the scroll graphic grip be

Typically something like min(viewport-height, max(1/GetScrollMaxY, 
some-random-minimim)), right?

> what size will the scroll jumps be

Don't you control those?

> etc.

Details?

-Boris