Commit 90a6033a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

it's name point coordinates not global

parent faf3fc3e
......@@ -165,8 +165,8 @@ public class CompartmentAliasXmlParser extends AbstractAliasXmlParser<Compartmen
Point2D position = getCommonParser().getPosition(node);
result.setNameX(position.getX());
result.setNameY(position.getY());
result.setWidth(result.getWidth() - (result.getNameX() - result.getX()));
result.setHeight(result.getHeight() - (result.getNameY() - result.getY()));
result.setNameWidth(result.getWidth() - (result.getNameX() - result.getX()));
result.setNameHeight(result.getHeight() - (result.getNameY() - result.getY()));
result.setNameHorizontalAlign(HorizontalAlign.LEFT);
result.setNameVerticalAlign(VerticalAlign.TOP);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment