Browse Source

Fixed bug where resizing right and bottom edges on controls did not snap properly.

pull/508/head
gumme 11 years ago
parent
commit
13277b4906
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

@ -121,7 +121,6 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions @@ -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 @@ -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) {

Loading…
Cancel
Save