From 05672deefa47b9334acbd286fd9aee678ff0bc91 Mon Sep 17 00:00:00 2001 From: Xavier Mamano Date: Mon, 14 May 2012 23:02:53 +0200 Subject: [PATCH] Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18 --- lib/OpenLayers/Renderer/SVG.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Renderer/SVG.js b/lib/OpenLayers/Renderer/SVG.js index e65da76a9a..ecaac9e27f 100644 --- a/lib/OpenLayers/Renderer/SVG.js +++ b/lib/OpenLayers/Renderer/SVG.js @@ -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; }, /**