Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit e302927

Browse files
committed
Merge pull request #508 from gumme/WpfDesignerSnaplineMergeFix
Fixed bug where resizing right and bottom edges on controls did not snap properly.
2 parents f16fd98 + 13277b4 commit e302927

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public override void BeforeSetPosition(PlacementOperation operation)
121121
} else {
122122
bounds.Height = Math.Max(0, bounds.Height + delta);
123123
}
124-
bounds.Height = Math.Max(0, bounds.Height - delta);
125124
info.Bounds = bounds;
126125
} else {
127126
foreach (var item in operation.PlacedItems) {
@@ -145,7 +144,6 @@ public override void BeforeSetPosition(PlacementOperation operation)
145144
} else {
146145
bounds.Width = Math.Max(0, bounds.Width + delta);
147146
}
148-
bounds.Width = Math.Max(0, bounds.Width - delta);
149147
info.Bounds = bounds;
150148
} else {
151149
foreach (var item in operation.PlacedItems) {

0 commit comments

Comments
 (0)