Closed AlmightyLks closed 1 year ago
Hey,
Can you tell me what you changed from v2 to v3?
Using v2, the port was also in the same position? Because it looks a bit to the left side?
(Following image is v2)
Seems so to me
Im guessing when you move the nodes the links are still out of place?
Yep
Can you upload me the project as is? I don't want to do these changes to my other clone since I'm cehcking the performance problem in that one
Latest v3 state is up on the repo Snatch the zip clone 😄
Hey, found the issue!
Since your ports don't really have a shape (0 height), the SinglePortAnchor
returns a wrong position because UseShapeAndAlignment
is true by default.
Change your ports initiation to:
if (current.Parent.GetPort(PortAlignment.Bottom) is { } sourcePort)
link.SetSource(new SinglePortAnchor(sourcePort) { UseShapeAndAlignment = false });
if (current.GetPort(PortAlignment.Top) is { } targetPort)
link.SetTarget(new SinglePortAnchor(targetPort) { UseShapeAndAlignment = false });
Oh wow! 😄 Yeah, I would've never found that
Thanks!
Migrating from v2 to v3, the links don't connect to the ports anymore
The ports however are rendered within the model properly, so that part should be fine