4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

transforming line with marker won't work well on IE #1181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This might be IE(11) issue. Chrome works fine.

Transforming (translate or scale) line with marker won't work well.
After Recalculating, line keeps is position on screen, while line element 
attributes are updated. And markers disappears.

Always update line marker- asttribues after line properties are changed, seems 
to handle this problem.

So, on IE, elementChanged event handler should always update marker attributes 
if exist.

Original issue reported on code.google.com by psh....@gmail.com on 25 Jan 2014 at 7:21

GoogleCodeExporter commented 9 years ago
I have fixed this for a project that integrates svg-editor.

From what I have seen it applies to IE11 (arrow and line not moving correctly), 
IE10 partially (line moves ok), IE 9 works ok. Do you see the progression? :)

From attached file:
See methods prioritizeExtensions() and how it is used inside runExtensions() 
(svgcanvas.js)
See method fixIERendering() and how it is used in ext-connector.js and 
ext-markers.js (based on this post -> 
http://stackoverflow.com/questions/17654578/svg-marker-does-not-work-in-ie9-10)

However another issue related to the connector markers is Issue 1243 -> 
https://code.google.com/p/svg-edit/issues/detail?can=2&start=0&num=100&q=ovidiu.
capusan&colspec=ID%20Type%20Status%20Priority%20NeededFor%20Browser%20Owner%20Su
mmary&groupby=&sort=&id=1243

Original comment by ovidiu.c...@exswap.com on 9 Oct 2014 at 1:02

Attachments: