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; }