Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify NeuropixelsV2e dialogs to scale correctly #243

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Modify NeuropixelsV2e dialogs to scale correctly #243

merged 1 commit into from
Aug 21, 2024

Conversation

bparks13
Copy link
Member

At scale values different from 100% on Windows 11 machines, the NeuropixelsV2e dialogs would not scale correctly, leading to hidden controls and making the GUI effectively useless.

In this PR, all NeuropixelsV2e dialogs were updated to use FlowLayoutPanel and TableLayoutPanel instead of SplitterPanel, as the two former panels handle resizing at different scale values more robustly than the latter.

One consequence of switching to these panels is that they are no longer movable from the user perspective; that is, all panel sizes are locked to their relative size. To view the full filepath for a configuration file, sometimes when maximizing the window it will show the entire path; if that is not enough, the filepath is inside of a textbox that can be selected and stepped through using the arrow keys to view the path.

Fixes #241

@bparks13 bparks13 added this to the 0.2.0 milestone Aug 21, 2024
@bparks13 bparks13 requested a review from jonnew August 21, 2024 20:57
@jonnew
Copy link
Member

jonnew commented Aug 21, 2024

Yeah upsides far outweigh the downsides. I tested on my laptop oat various zooms without issue. Nice.

@jonnew jonnew merged commit 17f4f93 into main Aug 21, 2024
6 checks passed
@jonnew jonnew deleted the issue-241 branch August 21, 2024 21:41
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.

Existing NeuropixelsV2e GUIs do not resize properly at scale values different from 100%
2 participants