diff --git a/lib/pages/spaces_management/all_spaces/widgets/community_structure_widget.dart b/lib/pages/spaces_management/all_spaces/widgets/community_structure_widget.dart index c1ef4fbc..6b349374 100644 --- a/lib/pages/spaces_management/all_spaces/widgets/community_structure_widget.dart +++ b/lib/pages/spaces_management/all_spaces/widgets/community_structure_widget.dart @@ -72,6 +72,8 @@ class _CommunityStructureAreaState extends State { _nameController = TextEditingController( text: widget.selectedCommunity?.name ?? '', ); + realignTree(); + _transformationController = TransformationController(); if (widget.selectedSpace != null) { WidgetsBinding.instance.addPostFrameCallback((_) { @@ -96,6 +98,7 @@ class _CommunityStructureAreaState extends State { spaces = widget.spaces.isNotEmpty ? flattenSpaces(widget.spaces) : []; connections = widget.spaces.isNotEmpty ? createConnections(widget.spaces) : []; _adjustCanvasSizeForSpaces(); + realignTree(); }); }