This commit is contained in:
艾竹
2023-07-02 11:23:00 +08:00
parent be7a99e651
commit b476fd4eb5
10 changed files with 938 additions and 46 deletions

View File

@@ -776,12 +776,12 @@ namespace AIStudio.Wpf.DiagramDesigner
public double GetItemWidth()
{
return double.IsNaN(ItemWidth) ? ActualItemWidth : ItemWidth;
return double.IsNaN(ItemWidth) ? Math.Max(ActualItemWidth, MinItemWidth) : ItemWidth;
}
public double GetItemHeight()
{
return double.IsNaN(ItemHeight) ? ActualItemHeight : ItemHeight;
return double.IsNaN(ItemHeight) ? Math.Max(ActualItemHeight, MinItemHeight) : ItemHeight;
}
public IShape GetShape() => ShapeDefiner(this);