From e17dc78e1d0f15dd3f4283afcbcbca6ee2e15ad3 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 13 Feb 2010 17:31:13 +0000 Subject: [PATCH] now that we truncate instead of rounding, graphics with odd width are shifted .5 pixels to the left (to the right before that change). git-svn-id: http://svn.openlayers.org/trunk/openlayers@10061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Renderer/VML.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Renderer/VML.html b/tests/Renderer/VML.html index 0c5857cd46..96da8f9dbd 100644 --- a/tests/Renderer/VML.html +++ b/tests/Renderer/VML.html @@ -206,7 +206,7 @@ r.drawGeometryNode(node, geometry, style); t.eq(node.childNodes[0].id, "test_fill", "fill child node correctly created"); - t.eq(node.style.left, "-3px", "x of insertion point with calculated xOffset correct"); + t.eq(node.style.left, "-2px", "x of insertion point with calculated xOffset correct"); t.eq(node.style.top, "-3px", "y of insertion point with calculated yOffset correct"); style.rotation = 90; @@ -214,7 +214,7 @@ r.drawGeometryNode(node, geometry, style); t.eq(node.childNodes[1].id, "test_image", "image child node correctly created"); - t.eq(node.style.left, "-4px", "x of insertion point of rotated image correct"); + t.eq(node.style.left, "-3px", "x of insertion point of rotated image correct"); t.eq(node.style.top, "-4px", "y of insertion point of rotated image correct"); }