On Apr 22, 12:55 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> Jonathan wrote:
> > The absolute position in the page.
>
> Get the presshell's root frame (via GetRootFrame()) and call GetOffsetTo()?
>
> -Boris

Boris,

Thank you.

This works. Getting the absolute position of the nsImageFrame in the
page (where 0,0 is the top left corner).

But it has problem if the nsImageFrame is in an iframe.  The
GetRootFrame() and call GetOffsetTo() gets me the position of the
nsImageFrame relative to the iframe.  How can i find out the position
relative to top left corner?

Thank you for any more pointers.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to