New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong layout for self-loop edge #425
Comments
Fixed as soon as #446 is on master. |
@lredor This is strange. At least with what's currently on the master, I'm getting this result: Please verify the results you're getting. I'm reopening the issue until I have confirmation that the bug doesn't exist anymore, or that I need to take another look. |
I verified and the problem is always here. I searched to understand why you have not the same result. With the elkg file in the zip file of description, the result is: In this file, the edge is contained in the Node1. That seems normal as both source and target are "in" the node. I updated the sample to have the edge contained in the Container1. And with this version, I have the same result as you: My question: Does an inside loop edge "must" be contained in the container of the node and not directly in the node? If the answer is "Yes", you can close this issue, the problem is in the structure of the graph. If the answer is "No", there is probably a bug in the code for this case. The 2 versions of the elkg is in this file SampleWithEdgeInsideSelfLoop-2versions.zip: |
That is the problem indeed: self loops must be contained in the parent of the node the self loops loops around. |
The layout of self loop edge is wrong when using org.eclipse.elk.layered algoriythm. It seems shifted with the coordinates of its container.
Steps to reproduce:
The coordinates of the edge is
The coordinates should be shifted with its container coordinates
{5.0, 47.0}
.This issue is maybe linked to ELK#420.
The text was updated successfully, but these errors were encountered: