Fix fullscreen window geometry to prevent bottom content from going out of view

- Use availableGeometry() instead of full screen geometry for fullscreen mode
- This accounts for taskbars, panels, and other system UI elements that may overlap
- Set window geometry to available screen space before calling showFullScreen()
- Ensures all GUI content remains visible in fullscreen mode
- Resolves issue where bottom part of fullscreen window was hidden/cut off

This fixes the fullscreen display issue where the window extended beyond
the visible screen area, making the bottom content inaccessible.
parent 8512d40f
......@@ -1119,6 +1119,12 @@ def main():
window = AutoInstallerGUI()
if not args.no_fullscreen:
# Get available screen geometry to handle fullscreen properly
screen = app.primaryScreen()
available_geometry = screen.availableGeometry()
# Set window geometry to available screen space (excluding taskbars/panels)
window.setGeometry(available_geometry)
window.showFullScreen()
else:
window.show()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment