Hidden sub window when window is resized
JonasBK opened this issue · comments
Describe the bug
If you click a button that spawns a sub-window (e.g., settings) and you move that sub-window to a new location on the screen, BH will save that location and spawn the sub-window in that same location the next time. If the user has resized the main window in the meantime, this sub-window location might be outside the main window, so the sub-window will not be visible. This is confusing to the user.
To Reproduce
Steps to reproduce the behavior:
- Open BH in full screen.
- Click on the 'settings' icon.
- Move the settings window to the left side of the screen.
- Close the settings window.
- Resize the BH main window to fill the right side of the screen.
- Click on the 'settings' icon -> the setting window is not visible.
Expected behavior
If the last location of the sub-window is outside the current main window, the sub-window should be spawned in the default location.
Additional context
No UI errors.