[Project_owners] getting the visible range of an html doc?
pete at mozdevgroup.com
Wed Oct 20 09:44:36 EDT 2004
> I KNOW a
>node's bounding rectangle can be found because the DOM Inspector
>flashes it. But it seems the inspector uses it's own flasher module
>that's written in C++.
>Is there a way to get this bounding rectangle from XUL? Or will I
>have to hack C++ to do it?
Inspector uses nsIFrame->GetRect() to get the relative offset of an
element. Yes it's c++.
There are no Mozilla geometry scriptable interfaces that I can think of
off hand . . .
Pete Collins - Founder, Mozdev Group Inc.
Mozilla Software Development Solutions
More information about the Project_owners