Skip to content

Commit

Permalink
Fixing horizontal center (#13312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusalvino authored and QilongTang committed Jul 12, 2023
1 parent 5d62f59 commit 339cced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ private void FindPopupPlacementTarget()
if (runSettingsViewModel.SelectedRunTypeItem.RunType == RunType.Manual)
{
popupPlacementTarget = runSettingsControl.RunButton;
double marginRight = 13;
HorizontalOffset = -((runSettingsControl.RunButton.Width / 2) - marginRight);
}
else
{
Expand Down

0 comments on commit 339cced

Please sign in to comment.