mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
block
This commit is contained in:
@@ -126,13 +126,15 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
innerport.DataItem.ShowConnectors = true;
|
||||
if (innerport.CanAttachTo(blockDesignerItemTempLink.Items.FirstOrDefault()) == true)
|
||||
{
|
||||
if (innerport.OnlyOneChild)
|
||||
if (innerport.OnlyOneChild || innerport.Children.Count == 0)
|
||||
{
|
||||
innerport.BeAttachTo = true;
|
||||
return innerport;
|
||||
}
|
||||
else
|
||||
{
|
||||
var childrenbounds = container.GetChildrenBounds();
|
||||
|
||||
innerport.BeAttachTo = true;
|
||||
return innerport;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user