Revert ab29ec8: container==content auto-fit made it worse — back to alpha-crop with the container at element size

The container tracks the element's own Width/Height again; the crop stays in the bitmap.
This commit is contained in:
2026-08-28 12:09:13 -07:00
parent ab29ec801d
commit 9b56e88800
7 changed files with 51 additions and 103 deletions
-3
View File
@@ -572,7 +572,6 @@ public partial class MainWindow : Window
{
_isResizing = true;
_resizeAspect = sel.ClipShape == ClipShape.Round ? 1 : sel.Width / Math.Max(1, sel.Height);
_viewModel.IsPreviewDragging = true;
grid.CaptureMouse();
e.Handled = true;
return;
@@ -584,7 +583,6 @@ public partial class MainWindow : Window
_viewModel.SelectedElement = hit;
_isDraggingOverlay = true;
_grabOffset = new Point(p.X - hit.X, p.Y - hit.Y);
_viewModel.IsPreviewDragging = true;
grid.CaptureMouse();
e.Handled = true;
return;
@@ -645,7 +643,6 @@ public partial class MainWindow : Window
grid.ReleaseMouseCapture();
_isDraggingOverlay = false;
_isResizing = false;
_viewModel.IsPreviewDragging = false;
}
private bool HitHandle(Point mouseScreen, SceneElement element)