Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18

This commit is contained in:
Xavier Mamano
2012-05-14 23:02:53 +02:00
parent 44e526a0e8
commit 05672deefa

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;
},
/**