Skip to content

Commit b4a22f5

Browse files
Copilotdwarwick
andcommitted
Disable automatic layout to fix container rendering - use LayoutType.None
Co-authored-by: dwarwick <15970276+dwarwick@users.noreply.github.com>
1 parent 153120f commit b4a22f5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

JwtIdentity.Client/Pages/Survey/BranchingSurveyEdit.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ else
6262
Connectors="@Connectors"
6363
NodeCreating="@OnNodeCreating">
6464
<SnapSettings Constraints="SnapConstraints.None" />
65-
<Layout Type="LayoutType.ComplexHierarchicalTree"
65+
<Layout Type="@DiagramLayoutType"
6666
Orientation="LayoutOrientation.TopToBottom"
6767
HorizontalSpacing="40" VerticalSpacing="40"
6868
HorizontalAlignment="Syncfusion.Blazor.Diagram.HorizontalAlignment.Center"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class BranchingSurveyEditModel : BlazorBase
2020
protected DiagramObjectCollection<Connector> Connectors { get; set; } = new DiagramObjectCollection<Connector>();
2121
protected SfDiagramComponent diagram;
2222
protected double ZoomLevel { get; set; } = 1.0;
23+
protected LayoutType DiagramLayoutType { get; set; } = LayoutType.None; // Use None for containers
2324

2425
protected override async Task OnInitializedAsync()
2526
{

0 commit comments

Comments
 (0)