From e7ff3d4254d11e5c390757ce709b64ec78aab193 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 10:22:33 +0200 Subject: [PATCH] fix: showMessageDialog should center dialog to parent (#48213) 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)