> http://mxr.mozilla.org/mozilla-central/source/dom/interfaces/core/nsI...
>
> has properties on it that should allow you to scroll the relevant
> element.  The only issue is finding the element you want to scroll.
> More than one element can be scrollable on a page.

Thx. In fact, it scrolls when I call SetScrollTop on the
nsIDOMNSHTMLElement interface of that DIV. But HOW FF finds the
"right" HTML element to set the scroll top to? I mean, when I move the
scrollbar, FF scrolls, right?

Is there a place in FF code with such "lets find the right node to
scroll when I move the scrollbar" algorithm, or is it scattered
through the whole FF scrolling code?

I could search the "first node with overflow == auto && scroll size >
viewport size" but obviously plain old HTML sites that do not use CSS
and the like know nothing about overflows etc... I confess I am a bit
lost. I don't know enough HTML/CSS/JS to dig out this one. Clues
Welcome.

Aaron

BTW: my browser CAN scroll HTML frames, I am presently using scroll
functions on nsIDOMWindows relative to subdocuments of FRAME and
IFRAME nodes.. which worked well until now, but now I know it could
not work on sites with frames built like Google Docs... holy kaw.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to