Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get visual position of an object?

1 view
Skip to first unread message

aditya somani

unread,
Sep 27, 2009, 10:30:25 AM9/27/09
to

Hi,

Can anyone tell me how to get the visual position/ bounding box a text
node while displayed on a browser? I intend to process this
information and use this in a java program.

Thanks,
Aditya

Robert O'Callahan

unread,
Sep 27, 2009, 7:57:34 PM9/27/09
to

Very recently we added support for the getClientRects and
getBoundingClientRect methods on the DOM Range object. See
http://www.w3.org/TR/cssom-view/#extensions-to-the-range-interface

These can do what you want.

Rob

0 new messages