Using display:block instead of position:absolute.
This fixes a regression that can be seen e.g. when using the FeatureRenderer in GeoExt, causing an incorrect alignment of the renderer.
This commit is contained in:
@@ -447,7 +447,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
*/
|
*/
|
||||||
createRenderRoot: function() {
|
createRenderRoot: function() {
|
||||||
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
|
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
|
||||||
svg.style.position = "absolute";
|
svg.style.display = "block";
|
||||||
return svg;
|
return svg;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user