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

Ensure restored bounds are at least in one screen #1472

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

glopesdev
Copy link
Member

This PR ensures that editor bounds restored from user settings can be visible at least in one of the connected screens. The approach chosen is to test whether the bounds intersect at least one of the available screens. This was preferred to a strict "contains" test to avoid resetting the settings when only a few pixels are outside the working area.

Fixes #1281

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jul 16, 2023
@glopesdev glopesdev added this to the 2.8 milestone Jul 16, 2023
@glopesdev glopesdev merged commit 7789399 into bonsai-rx:main Jul 17, 2023
@glopesdev glopesdev deleted the issue-1281 branch July 17, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saved editor window position should restore to default state if out of screen bounds
1 participant