1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
    ju187 is on a distinguished road

      0  

    Default Unanswered: set stroke style in IE

    Unanswered: set stroke style in IE


    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.

  2. #2
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    839
    Answers
    2
    Vote Rating
    39
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    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?
    Product Architect
    Altus Ltd.

  3. #3
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    839
    Answers
    2
    Vote Rating
    39
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    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...
    Product Architect
    Altus Ltd.

  4. #4
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    839
    Answers
    2
    Vote Rating
    39
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    Think I'm right, since if reload the store the style is lost too.... am looking into it.
    Product Architect
    Altus Ltd.

Thread Participants: 1