Skip to content

Centre the MathCAT Preferences dialog on screen - #113

Merged
NSoiffer merged 1 commit into
daisy:mainfrom
ways2read:center-preferences-dialog
Aug 31, 2026
Merged

Centre the MathCAT Preferences dialog on screen#113
NSoiffer merged 1 commit into
daisy:mainfrom
ways2read:center-preferences-dialog

Conversation

@ways2read

Copy link
Copy Markdown
Member

Summary

  • The preferences dialog was centred with Centre(wx.BOTH), which positions relative to NVDA's hidden mainFrame at the origin, so it opened at the top-left of the display.
  • After layout, centre on a visible parent when one exists; otherwise use CentreOnScreen(), matching other NVDA settings dialogs.

Test plan

  • Open NVDA menu > Settings > MathCAT Settings and confirm the dialog appears in the centre of the display, not the top-left.
  • Confirm other NVDA settings dialogs still look unchanged.
  • On a multi-monitor setup, confirm the dialog appears on the expected display.

Made with Cursor

NVDA's hidden mainFrame sits at the origin, so Centre(wx.BOTH) placed the dialog at the top-left. Centre on a visible parent when there is one, otherwise CentreOnScreen like other NVDA settings dialogs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@NSoiffer

Copy link
Copy Markdown
Collaborator

Looks good. I didn't test it though.

@NSoiffer
NSoiffer merged commit eef6e94 into daisy:main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants