Skip to content

Commit

Permalink
Fix anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
Equbuxu committed Feb 15, 2022
1 parent 6d07eb6 commit ed84037
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PixiEditor/Models/Dialogs/ResizeDocumentDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ bool ShowDialog<T>()
{
Width = popup.NewAbsoluteWidth;
Height = popup.NewAbsoluteHeight;
if (popup is ResizeCanvasPopup resizeCanvas)
{
ResizeAnchor = resizeCanvas.SelectedAnchorPoint;
}
}

return (bool)popup.DialogResult;
Expand All @@ -81,4 +85,4 @@ private bool ShowResizeCanvasDialog()
return ShowDialog<ResizeCanvasPopup>();
}
}
}
}

0 comments on commit ed84037

Please sign in to comment.