OpenLayers OpenLayers

Changeset 5278

Show
Ignore:
Timestamp:
11/26/07 18:12:41 (1 year ago)
Author:
ahocevar
Message:

updated patch for #1172

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/ahocevar/styles/lib/OpenLayers/Renderer/VML.js

    r5272 r5278  
    252252     * Method: postDraw 
    253253     * Some versions of Internet Explorer seem to be unable to set fillcolor 
    254      * and strokecolor correctly before a node is appended to a visible vml 
    255      * node. This method takes care of that and sets fillcolor and strokecolor 
    256      * again if needed. 
     254     * and strokecolor to "none" correctly before the fill node is appended to 
     255     * a visible vml node. This method takes care of that and sets fillcolor 
     256     * and strokecolor again if needed. 
    257257     *  
    258258     * Parameters: 
     
    262262        var fillColor = node._style.fillColor; 
    263263        var strokeColor = node._style.strokeColor; 
    264         if (node.getAttribute("fillcolor") != fillColor) { 
     264        if (fillColor == "none" && node.getAttribute("fillcolor") != "none") { 
    265265            node.setAttribute("fillcolor", fillColor); 
    266266        } 
    267         if (node.getAttribute("strokecolor") != strokeColor) { 
     267        if (strokeColor == "none" && 
     268                node.getAttribute("strokecolor") != "none") { 
    268269            node.setAttribute("strokecolor", strokeColor) 
    269270        }