From 13277b4906f7fede95f7099ead64e54f2b18d34d Mon Sep 17 00:00:00 2001 From: gumme Date: Wed, 2 Jul 2014 11:07:57 +0200 Subject: [PATCH] Fixed bug where resizing right and bottom edges on controls did not snap properly. --- .../Project/Extensions/SnaplinePlacementBehavior.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs index f48ca4ab07..90520ca808 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs @@ -121,7 +121,6 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions } else { bounds.Height = Math.Max(0, bounds.Height + delta); } - bounds.Height = Math.Max(0, bounds.Height - delta); info.Bounds = bounds; } else { foreach (var item in operation.PlacedItems) { @@ -145,7 +144,6 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions } else { bounds.Width = Math.Max(0, bounds.Width + delta); } - bounds.Width = Math.Max(0, bounds.Width - delta); info.Bounds = bounds; } else { foreach (var item in operation.PlacedItems) {