On 2/12/10 7:15 AM, Babele Dunnit wrote:
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?

"The scrollbar" is just attached to the scrollable element in this case.

Here, try this testcase to see what's going on:

<!DOCTYPE html>
<body>
  <div style="overflow:auto; height: 200px">
    <div style="height: 1000px"></div>
  </div>
  <div style="overflow:auto; height: 200px">
    <div style="height: 1000px"></div>
  </div>
</body>

Note how each scrollbar just corresponds to the thing that scrolls. Also note how there is more than one scrollbar.

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

Reply via email to