logo       

GetComputedStyle returning "auto": msg#00041

mozilla.devel.dom

Subject: GetComputedStyle returning "auto"

hi, i'm writing a c++ program that attempts to get position (ie, pixel
coordinates) of DOM nodes (text, img, table, etc) on a rendered page. I
thought GetComputedStyle with "left" and "top" would do it, but those
are just returning "auto"? DOM Inspector confirms this value.

what i want is what the Box Model in DOM Inspector reports for (x, y)
for all nodes in the document. how can i do this? thank you very much.
i'm using 1.7.3 btw.

--
Xiaolei Li | xli10@xxxxxxxx | www.xiaolei.org


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise