Autoformatting
This commit is contained in:
parent
8140ddc2ff
commit
22af8e91cc
2 changed files with 4 additions and 10 deletions
|
|
@ -49,8 +49,6 @@ NPanel {
|
||||||
searchText = ""
|
searchText = ""
|
||||||
selectedIndex = 0
|
selectedIndex = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onClosed: {
|
onClosed: {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue