mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: showMessageDialog should center dialog to parent (#48181)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user