Skip to content

fix: showMessageDialog should center dialog to parent#48181

Merged
codebytere merged 1 commit intomainfrom
fix-window-relative-dialog
Aug 29, 2025
Merged

fix: showMessageDialog should center dialog to parent#48181
codebytere merged 1 commit intomainfrom
fix-window-relative-dialog

Conversation

@codebytere
Copy link
Copy Markdown
Member

@codebytere codebytere commented Aug 27, 2025

Description of Change

Closes #23001.

Fixes an issue where dialog.showMessageDialog showed a window incorrectly centered to monitor instead of parent window when passed.

Before

Screenshot 2025-08-27 at 10 50 56 AM

After

Screenshot 2025-08-27 at 10 53 11 AM

Checklist

Release Notes

Notes: Fixed an issue where dialog.showMessageDialog showed a window incorrectly centered to monitor instead of parent window when passed.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. labels Aug 27, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Aug 27, 2025
Copy link
Copy Markdown
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 28, 2025
@codebytere codebytere merged commit 7373173 into main Aug 29, 2025
160 of 163 checks passed
@codebytere codebytere deleted the fix-window-relative-dialog branch August 29, 2025 07:56
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Aug 29, 2025

Release Notes Persisted

Fixed an issue where dialog.showMessageDialog showed a window incorrectly centered to monitor instead of parent window when passed.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "37-x-y", please check out #48213

@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "36-x-y", please check out #48214

@trop trop bot removed the target/37-x-y PR should also be added to the "37-x-y" branch. label Aug 29, 2025
@trop
Copy link
Copy Markdown
Contributor

trop bot commented Aug 29, 2025

I have automatically backported this PR to "38-x-y", please check out #48215

@trop trop bot added in-flight/36-x-y in-flight/38-x-y merged/38-x-y PR was merged to the "38-x-y" branch. and removed target/36-x-y PR should also be added to the "36-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. in-flight/38-x-y labels Aug 29, 2025
@trop trop bot removed the in-flight/37-x-y label Sep 5, 2025
@trop trop bot added merged/37-x-y PR was merged to the "37-x-y" branch. merged/36-x-y PR was merged to the "36-x-y" branch. and removed in-flight/36-x-y labels Sep 5, 2025
dodolalorc pushed a commit to dodolalorc/electron that referenced this pull request Sep 11, 2025
kigh-ota pushed a commit to kigh-ota/electron that referenced this pull request Sep 30, 2025
nilayarya pushed a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
nilayarya added a commit to nilayarya/electron that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/36-x-y PR was merged to the "36-x-y" branch. merged/37-x-y PR was merged to the "37-x-y" branch. merged/38-x-y PR was merged to the "38-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dialogs aren't centered to the window when calling showMessageBox(win, ...)

3 participants