Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in IE 8 getBBox() returns original x, y of drag'n'droped ellipse #519

Open
slaweet opened this issue Feb 14, 2012 · 2 comments
Open

in IE 8 getBBox() returns original x, y of drag'n'droped ellipse #519

slaweet opened this issue Feb 14, 2012 · 2 comments

Comments

@slaweet
Copy link

slaweet commented Feb 14, 2012

See http://raphaeljs.com/graffle.html in IE8(haven't tried different version). Dragging rectangles works just fine, but ellipses doesn't update connection, because of the problem mentioned in the title.

@johnsusi
Copy link

Same issue in IE6.

The element is not marked as dirty when setting cx/cy in IE.

Manually setting this._.dirty = true; after this.attr(att); makes the demo work as expected.

@trokster
Copy link

Same goes for paths:
In ie when assigning a new path, bbox isn't updated. below Rapha 2.1.0 line 5017:

    if (params.path && o.type == "path" || newpath) {
        node.path = path2vml(~Str(a.path).toLowerCase().indexOf("r") ? R._pathToAbsolute(a.path) : a.path);

you need to add:
o._.dirty = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants