Browse Source

Fix anchors

Equbuxu 3 years ago
parent
commit
ed8403732b
1 changed files with 5 additions and 1 deletions
  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;
                 Width = popup.NewAbsoluteWidth;
                 Height = popup.NewAbsoluteHeight;
                 Height = popup.NewAbsoluteHeight;
+                if (popup is ResizeCanvasPopup resizeCanvas)
+                {
+                    ResizeAnchor = resizeCanvas.SelectedAnchorPoint;
+                }
             }
             }
 
 
             return (bool)popup.DialogResult;
             return (bool)popup.DialogResult;
@@ -81,4 +85,4 @@ namespace PixiEditor.Models.Dialogs
             return ShowDialog<ResizeCanvasPopup>();
             return ShowDialog<ResizeCanvasPopup>();
         }
         }
     }
     }
-}
+}