From 5a1faa0fd43a249f25107af0b50b46ac7d5c399c Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Mon, 1 Sep 2025 15:08:15 -0400 Subject: [PATCH] SettingsPanel: ensure we never clip screen height --- Modules/SettingsPanel/SettingsPanel.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/SettingsPanel/SettingsPanel.qml b/Modules/SettingsPanel/SettingsPanel.qml index efc89a2..d2c76ba 100644 --- a/Modules/SettingsPanel/SettingsPanel.qml +++ b/Modules/SettingsPanel/SettingsPanel.qml @@ -12,7 +12,11 @@ NPanel { id: root panelWidth: Math.round(Math.max(screen?.width * 0.4, 1000) * scaling) - panelHeight: Math.round(Math.max(screen?.height * 0.75, 800) * scaling) + panelHeight: { + var height = Math.round(Math.max(screen?.height * 0.75, 800) * scaling) + height = Math.min(height, screen?.height - Style.barHeight * scaling) + return height + } panelAnchorHorizontalCenter: true panelAnchorVerticalCenter: true