Browse Source

Fix anchors

Equbuxu 3 năm trước cách đây
mục cha
commit
ed8403732b
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      PixiEditor/Models/Dialogs/ResizeDocumentDialog.cs

+ 5 - 1
PixiEditor/Models/Dialogs/ResizeDocumentDialog.cs

@@ -66,6 +66,10 @@ namespace PixiEditor.Models.Dialogs
             {
                 Width = popup.NewAbsoluteWidth;
                 Height = popup.NewAbsoluteHeight;
+                if (popup is ResizeCanvasPopup resizeCanvas)
+                {
+                    ResizeAnchor = resizeCanvas.SelectedAnchorPoint;
+                }
             }
 
             return (bool)popup.DialogResult;
@@ -81,4 +85,4 @@ namespace PixiEditor.Models.Dialogs
             return ShowDialog<ResizeCanvasPopup>();
         }
     }
-}
+}