This commit is contained in:
艾竹
2023-08-01 22:59:01 +08:00
parent 91d45b10f6
commit 15b7596515

View File

@@ -242,15 +242,15 @@ namespace AIStudio.Wpf.DiagramDesigner
{
if (Erasable)
{
ItemWidth = Geometry.Bounds.Width - ColorViewModel.LineWidth * 0.5;
ItemHeight = Geometry.Bounds.Height - ColorViewModel.LineWidth * 0.5;
ItemWidth = Geometry.Bounds.Width;// - ColorViewModel.LineWidth * 0.5;
ItemHeight = Geometry.Bounds.Height;// - ColorViewModel.LineWidth * 0.5;
Left = point.X;
Top = point.Y;
}
else
{
ItemWidth = Geometry.Bounds.Width + ColorViewModel.LineWidth * 0.5;
ItemHeight = Geometry.Bounds.Height + ColorViewModel.LineWidth * 0.5;
ItemWidth = Geometry.Bounds.Width;// + ColorViewModel.LineWidth * 0.5;
ItemHeight = Geometry.Bounds.Height;// + ColorViewModel.LineWidth * 0.5;
Left = point.X;
Top = point.Y;
}