OpenLayers OpenLayers

Changeset 7933

Show
Ignore:
Timestamp:
09/02/08 16:32:31 (3 months ago)
Author:
sbenthall
Message:

novalis' updates to Util and SVG renderer to correct for FF3 hyper-accurate reporeporting of its SVG support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/topp/woonerf/lib/OpenLayers/Renderer/SVG.js

    r5791 r7933  
    6363     */ 
    6464    supported: function() { 
    65         var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG"; 
     65        var svgFeature = "http://www.w3.org/TR/SVG11/feature#Structure"; 
    6666        return (document.implementation &&  
    6767                (document.implementation.hasFeature("org.w3c.svg", "1.0") ||  
  • sandbox/topp/woonerf/lib/OpenLayers/Util.js

    r6474 r7933  
    15211521    var x=0, y=0, w=0, h=0;  
    15221522 
    1523     if (document.getBoxObjectFor
     1523    if (element.getClientBoundingRect
    15241524    {  
    1525         var bo = document.getBoxObjectFor(element);  
    1526         x = bo.x
    1527         y = bo.y
    1528         w = bo.width
    1529         h = bo.height;         
     1525        var br = element.getClientBoundingRect(); 
     1526        x = br.left
     1527        y = br.top
     1528        w = br.right - br.left
     1529        h = br.bottom - br.top; 
    15301530    }  
    15311531    else