Skip to content

Commit dd254e4

Browse files
Copilotdwarwick
andcommitted
Add proper positioning and alignment to NodeGroup annotations for visible group names
Co-authored-by: dwarwick <15970276+dwarwick@users.noreply.github.com>
1 parent 9f92e47 commit dd254e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

JwtIdentity.Client/Pages/Survey/BranchingSurveyEdit.razor.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,11 @@ private void BuildSyncfusionDiagram()
602602
new ShapeAnnotation()
603603
{
604604
Content = groupName,
605-
Style = new TextStyle() { Color = "white", Bold = true, FontSize = 14 }
605+
Style = new TextStyle() { Color = "white", Bold = true, FontSize = 14 },
606+
Offset = new DiagramPoint() { X = 0.5, Y = 0 },
607+
Margin = new DiagramThickness() { Top = 5, Left = 0, Right = 0, Bottom = 0 },
608+
VerticalAlignment = VerticalAlignment.Top,
609+
HorizontalAlignment = Syncfusion.Blazor.Diagram.HorizontalAlignment.Center
606610
}
607611
},
608612
Style = new ShapeStyle()

0 commit comments

Comments
 (0)