Autoformatting

This commit is contained in:
LemmyCook 2025-08-26 12:20:27 -04:00
parent 8140ddc2ff
commit 22af8e91cc
2 changed files with 4 additions and 10 deletions

View file

@ -49,8 +49,6 @@ NPanel {
searchText = "" searchText = ""
selectedIndex = 0 selectedIndex = 0
} }
} }
onClosed: { onClosed: {

View file

@ -194,17 +194,13 @@ Loader {
property int calculatedY: { property int calculatedY: {
if (panelAnchorVerticalCenter) { if (panelAnchorVerticalCenter) {
return (panelWindow.height - panelHeight) / 2 return (panelWindow.height - panelHeight) / 2
} } else if (panelAnchorBottom) {
else if (panelAnchorBottom) {
return panelWindow.height - panelHeight - (Style.marginS * scaling) return panelWindow.height - panelHeight - (Style.marginS * scaling)
} } else if (panelAnchorTop) {
else if (panelAnchorTop) {
return (Style.marginS * scaling) return (Style.marginS * scaling)
} } else if (panelAnchorBottom) {
else if (panelAnchorBottom) {
panelWindow.height - panelHeight - (Style.marginS * scaling) panelWindow.height - panelHeight - (Style.marginS * scaling)
} } else if (!barAtBottom) {
else if (!barAtBottom) {
// Below the top bar // Below the top bar
return Style.marginS * scaling return Style.marginS * scaling
} else { } else {