I am using get getBBox() method to get the bounding box of the line. I have observed one very strange issue which is only there when a horizontal or vertical line is enclosed in a group. When i get the bounding rect and get its height or other properties they give very large numbers like
3.3999999521443642e+38 or -3.3999999521443642e+38 Below is the line for which i want to get the bounding box. <g id="abcd"> <line id="abcds" x1="151" y1="195" x2="373" y2="195" style="stroke:black;stroke-width:1;fill:blue;"/> </g> Now if i remove the line from the group everything works fine except that the height is now 0. (zero) (in case of vertical line width will be zero) This is only when line is horizontal or vertical, in case the line is slightly tilted at some angle the bounding box returned by getBBox method is just fine. I m using IE6 with ASV 3.02 on win2k. CODE : ----------- var oDoc = document.embeds[0].getSVGDocument(); // get document var oG = oDoc.getElementById("abcd"); // get the group containing the line var c = oG.getBBox(); alert(c.x); alert(c.y); alert(c.width); alert(c.height); Regards Faisal Javeed INTECH Process Automation Pvt. Ltd. 119-B Tech Society Lahore-54590, Pakistan Cell: 03334241582 Voice: +92 42 5427001 (3 lines) Fax: +92 42 5411724 Web: www.intechww.com [Non-text portions of this message have been removed] ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/