SettingsPanel: ensure we never clip screen height
This commit is contained in:
parent
57d912efc8
commit
5a1faa0fd4
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue