Add style = "position: absolute;" on the SVG to skip the bug of Chrome 18
This commit is contained in:
@@ -446,7 +446,9 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
* {DOMElement} The specific render engine's root element
|
* {DOMElement} The specific render engine's root element
|
||||||
*/
|
*/
|
||||||
createRenderRoot: function() {
|
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;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user