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
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
r.drawGeometryNode(node, geometry, style);
|
r.drawGeometryNode(node, geometry, style);
|
||||||
|
|
||||||
t.eq(node.childNodes[0].id, "test_fill", "fill child node correctly created");
|
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");
|
t.eq(node.style.top, "-3px", "y of insertion point with calculated yOffset correct");
|
||||||
|
|
||||||
style.rotation = 90;
|
style.rotation = 90;
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
r.drawGeometryNode(node, geometry, style);
|
r.drawGeometryNode(node, geometry, style);
|
||||||
|
|
||||||
t.eq(node.childNodes[1].id, "test_image", "image child node correctly created");
|
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");
|
t.eq(node.style.top, "-4px", "y of insertion point of rotated image correct");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user