open-ephys / bonsai-onix1

Bonsai library for the Open Ephys Onix Acquisition System
https://open-ephys.github.io/onix1-bonsai-docs
MIT License
4 stars 3 forks source link

Set all dialogs to open in the center of their parent #311

Open bparks13 opened 1 week ago

bparks13 commented 1 week ago

In previous commits, panels were updated to eliminate the percent scaling issue that was being seen; while this is fixed if the dialog is opened in the same screen as the original Bonsai window, it is not correct if Bonsai is in a window with a different screen resolution than the window that the dialog is opened in.

The fix is easy; set StartPosition to CenterParent instead of the default for all dialogs that can be opened from Bonsai. This will ensure that the same resolution is used for the new window, and it should not have any issues with scale.