|
|
|
@ -96,8 +96,10 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
@@ -96,8 +96,10 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
|
|
|
|
|
if (operation.Type == PlacementType.Resize) { |
|
|
|
|
if (info.ResizeThumbAlignment.Vertical == VerticalAlignment.Top) { |
|
|
|
|
bounds.Y += delta; |
|
|
|
|
bounds.Height = Math.Max(0, bounds.Height - delta); |
|
|
|
|
} 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) { |
|
|
|
@ -117,8 +119,10 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
@@ -117,8 +119,10 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
|
|
|
|
|
if (operation.Type == PlacementType.Resize) { |
|
|
|
|
if (info.ResizeThumbAlignment.Horizontal == HorizontalAlignment.Left) { |
|
|
|
|
bounds.X += delta; |
|
|
|
|
} |
|
|
|
|
bounds.Width = Math.Max(0, bounds.Width + delta); |
|
|
|
|
bounds.Width = Math.Max(0, bounds.Width - delta); |
|
|
|
|
} else { |
|
|
|
|
bounds.Width = Math.Max(0, bounds.Width + delta); |
|
|
|
|
} |
|
|
|
|
info.Bounds = bounds; |
|
|
|
|
} else { |
|
|
|
|
foreach (var item in operation.PlacedItems) { |
|
|
|
|