Results 1 to 4 of 4

Thread: set stroke style in IE

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
      0  

    Default 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
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,019
    Answers
    3
    Vote Rating
    107
      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
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,019
    Answers
    3
    Vote Rating
    107
      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
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,019
    Answers
    3
    Vote Rating
    107
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •