From d5907878bc436c10cad163f3f0a57c2f0c6dcc5a Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 14:56:47 -0700 Subject: [PATCH] fix: showMessageDialog should center dialog to parent (#48215) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- shell/browser/ui/message_box_win.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/browser/ui/message_box_win.cc b/shell/browser/ui/message_box_win.cc index e8658938e5..9ba64cb3f9 100644 --- a/shell/browser/ui/message_box_win.cc +++ b/shell/browser/ui/message_box_win.cc @@ -160,6 +160,7 @@ DialogResult ShowTaskDialogWstr(gfx::AcceleratedWidget parent, if (parent) { config.hwndParent = parent; + config.dwFlags |= TDF_POSITION_RELATIVE_TO_WINDOW; } if (default_id > 0)