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

VML Adding paths after setViewBox with x,y offset #874

Open
tetraDB opened this issue Jun 20, 2014 · 1 comment · May be fixed by #1069
Open

VML Adding paths after setViewBox with x,y offset #874

tetraDB opened this issue Jun 20, 2014 · 1 comment · May be fixed by #1069

Comments

@tetraDB
Copy link

tetraDB commented Jun 20, 2014

Hello,
I've developed a little app in Javascript that allows someone to pan and zoom around.
I'm using Raphael to draw bezier paths, underneath absolute DIV's that hold images.
The user is able to navigate through different data using a next button. What happens when you hit next is that it removes all the old stuff on the paper and then add the new data.
This works great on SVG browsers. However, i've noticed that while using IE8, so VML, if the viewBox has an x,y, offset, after I have added the new paths, they are placed with an offset equivelent to about half of the viewBox x,y offset. This makes them offset to my absolute DIV's.
Again this is fine using SVG browsers. I initially thought that it was a problem with my code, however, I found a way to fix the offset so everything remains syncronized.
To fix it I have to return the viewBox to position 0,0 and the origianl width and height before I add the new paths, then recaculate panning and zooming, then everything works fine. I can only conclude that this is a Bug :)

Regards,

@dongqiaoershao
Copy link

image
u can change the code el.transform("..."); into el.transform("...t"+x+","+y); in line 8195, it works in ie8

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

Successfully merging a pull request may close this issue.

2 participants