mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 03:29:03 +08:00
Improve readability and add comments.
This commit is contained in:
parent
74984ca12a
commit
f8c86cce4d
@ -246,7 +246,14 @@ Item
|
||||
}
|
||||
PropertyChanges {
|
||||
target: panelBorder
|
||||
anchors.bottomMargin: ((base.activeY + UM.Theme.getSize("button").height) > panelBorder.height) ? -(base.activeY + UM.Theme.getSize("button").height) : -panelBorder.height
|
||||
anchors.bottomMargin: {
|
||||
if (panelBorder.height > (base.activeY + UM.Theme.getSize("button").height)) {
|
||||
// panel is tall, align the top of the panel with the top of the first tool button
|
||||
return -panelBorder.height
|
||||
}
|
||||
// align the bottom of the panel with the bottom of the selected tool button
|
||||
return -(base.activeY + UM.Theme.getSize("button").height)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user