mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
SettingsPanel: ensure we never clip screen height
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user