From c6073218ea6baf188343c3de84855a3316eb4c91 Mon Sep 17 00:00:00 2001 From: jesusalvino Date: Wed, 14 Sep 2022 21:21:26 -0500 Subject: [PATCH] Fixing horizontal center --- src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs b/src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs index ee639665648..cb41ff75d12 100644 --- a/src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs +++ b/src/DynamoCoreWpf/Views/FileTrust/FileTrustWarning.xaml.cs @@ -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 {