Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zHaytam committed Mar 22, 2021
1 parent 0d4380a commit 78b4395
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Blazor.Diagrams/Components/LinkWidget.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ private LinkVertexModel CreateVertex(double clientX, double clientY, int index)

private Point GetPortPositionBasedOnAlignment(PortModel port, LinkMarker marker)
{
if (port == null)
return null;

if (marker == null)
return port.MiddlePosition;

Expand Down

0 comments on commit 78b4395

Please sign in to comment.