Hi Thomas, > I'm guessing selElement is the 'target' from the event? > I.E. one of the rects? Or is it the 'group' element?
selElement returns group element also selElement.getParent() returns root element(document.getRootElement) of the SVG Document. > this part doesn't sync which everything above however, this > looks like correct output to me. As you move up the y value goes > down - isn't that what you want???? > > > Should i add it's position with element's old position? > > or > > Is there anyother way to get current position straightly? > > What you are getting above looks right to me, perhaps you > can explain what's wrong? Actually i am trying to find center point of that group element. whenever user moves the group element, i should find the center point. So i am trying to find current position and width of the group element. But it's giving wrong co- ordinates. Suppose the group element's current position is (358.0,52.0). if i try to move selected group element someother location, it returns the position as (0,1), (0,2), (0,-1), (0,-2). But it is supposed to be (358, 53.0), (358, 54.0), (358, 52.0), (358, 51.0). Thanks, Selva --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
