Merge pull request #467 from jorix/392

Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18
This commit is contained in:
Éric Lemoine
2012-05-16 12:04:41 -07:00

View File

@@ -446,7 +446,9 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
* {DOMElement} The specific render engine's root element
*/
createRenderRoot: function() {
return this.nodeFactory(this.container.id + "_svgRoot", "svg");
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
svg.style.position = "absolute";
return svg;
},
/**