Merge remote-tracking branch 'origin/main'

This commit is contained in:
rope 2026-08-21 14:44:16 +01:00
commit a88ef1e8b2

View file

@ -4832,8 +4832,13 @@ in
// is taller than the space (yMax < yMin). // is taller than the space (yMax < yMin).
readonly property real yMin: Theme.frameWidth readonly property real yMin: Theme.frameWidth
readonly property real yMax: bar.height - Theme.frameWidth - height readonly property real yMax: bar.height - Theme.frameWidth - height
// A panel whose opener sits high on the bar looks adrift
// when it merely centres on it pin it to the frame, the
// way the bottom cluster's menus already land on yMax.
property bool alignTop: false
x: Theme.barWidth x: Theme.barWidth
y: Math.round(Math.max(yMin, Math.min(yMax, dropdownY - height / 2))) y: alignTop ? Math.round(yMin)
: Math.round(Math.max(yMin, Math.min(yMax, dropdownY - height / 2)))
width: fullWidth + 4 width: fullWidth + 4
// +24, not +16: the shader insets the panel 8px top and // +24, not +16: the shader insets the panel 8px top and
// bottom, so +16 left the panel edge flush with the content // bottom, so +16 left the panel edge flush with the content
@ -5200,6 +5205,7 @@ in
// no rebuild and no restart. // no rebuild and no restart.
BarDropdown { BarDropdown {
id: wallDropdown id: wallDropdown
alignTop: true
fullWidth: wallCard.width + 2 * Theme.panelGap fullWidth: wallCard.width + 2 * Theme.panelGap
fullHeight: wallCard.height + 2 * Theme.panelGap fullHeight: wallCard.height + 2 * Theme.panelGap