DmitryBaranovskiy/raphael — Issue #423: IE8 - text.attr('x') doesn't reflect accurate coordinate of text
Author: krisrogers
Created: 2011-10-19 05:23:45+00:00
State: open

If translate is called on text (maybe other elements too) a call to text.attr('x') or text.attr('y') will return the original coordinates which don't reflect any translations that have been made since the element was created. Also worth noting is that getBBox() returns the correct coordinates.

Code sample:
'''javascript
t = paper.text(100, 100, 'hello world')
alert(t.attr('x'))
t.translate(50, 50)
alert(t.attr('x'))
'''