View Full Version : set stroke style in IE

3 May 2012, 2:47 PM
Have a page with many sprites belong to different groups. I'd like to highlight sprites belong to the same group when mouseover it. The is implemented by setStyle({stroke:'some color','stroke-width':4}) in the listener. This works fine in FF and Chrome. However, is IE the listener is called, but the stryle is not set. IE support stroke as the initial stroke is set correctly, just it ignored the the new style. Any suggestions? thanks.

19 Dec 2012, 6:17 AM
I'm just looking at the same issue, and nothing yet.
Fine in IE9, it's IE8 and 7 that are the problem. Can also see it in IE9 when rendering in IE7 mode...

You get anywhere with it?

I can see the style getting set, so maybe it's when it's read back?

19 Dec 2012, 6:42 AM
Calling setAttributes instead of setStyle helps specifically with pie segments.
If have clickable legend though need to setStyle too, to persist the stroke/stroke-width.

All is good in a proper browser, but the style is lost in old IEs.
I suspect it's not setStyle, but the reading back of it somewhere...

19 Dec 2012, 6:44 AM
Think I'm right, since if reload the store the style is lost too.... am looking into it.