Skip to content

Commit

Permalink
Using display:block instead of position:absolute.
Browse files Browse the repository at this point in the history
This fixes a regression that can be seen e.g. when using the FeatureRenderer in GeoExt, causing an incorrect alignment of the renderer.
  • Loading branch information
ahocevar committed May 18, 2012
1 parent 92f04a7 commit 120cc06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenLayers/Renderer/SVG.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
*/
createRenderRoot: function() {
var svg = this.nodeFactory(this.container.id + "_svgRoot", "svg");
svg.style.position = "absolute";
svg.style.display = "block";
return svg;
},

Expand Down

0 comments on commit 120cc06

Please sign in to comment.