From 15b75965153d52ad4169a6e530e16a1fd752527e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E7=AB=B9?= Date: Tue, 1 Aug 2023 22:59:01 +0800 Subject: [PATCH] block --- .../Erasable/DrawingDesignerItemViewModelBase.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AIStudio.Wpf.DiagramDesigner/ViewModels/DrawingViewModel/Erasable/DrawingDesignerItemViewModelBase.cs b/AIStudio.Wpf.DiagramDesigner/ViewModels/DrawingViewModel/Erasable/DrawingDesignerItemViewModelBase.cs index 07ca951..db203df 100644 --- a/AIStudio.Wpf.DiagramDesigner/ViewModels/DrawingViewModel/Erasable/DrawingDesignerItemViewModelBase.cs +++ b/AIStudio.Wpf.DiagramDesigner/ViewModels/DrawingViewModel/Erasable/DrawingDesignerItemViewModelBase.cs @@ -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; }