From d24826a3c1236a7777b34919ca0ce05b6662aa3c Mon Sep 17 00:00:00 2001 From: krasko <154632626+krasko78@users.noreply.github.com> Date: Sun, 23 Feb 2025 02:33:18 +0100 Subject: [PATCH] 26658: Vertically center percussions pad within the panel --- .../qml/MuseScore/NotationScene/PercussionPanel.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/notation/qml/MuseScore/NotationScene/PercussionPanel.qml b/src/notation/qml/MuseScore/NotationScene/PercussionPanel.qml index c8faac2237ccc..7e1124cbea37d 100644 --- a/src/notation/qml/MuseScore/NotationScene/PercussionPanel.qml +++ b/src/notation/qml/MuseScore/NotationScene/PercussionPanel.qml @@ -115,7 +115,7 @@ Item { width: Math.min(rowLayout.width, parent.width) contentWidth: rowLayout.width - contentHeight: rowLayout.height + contentHeight: rowLayout.height + rowLayout.anchors.topMargin StyledScrollBar.vertical: verticalScrollBar @@ -152,6 +152,8 @@ Item { } height: padGrid.cellHeight * padGrid.numRows + anchors.top: parent.top + anchors.topMargin: Math.max((flickable.height - height) / 2, 0) spacing: padGrid.spacing / 2 NavigationPanel { @@ -240,10 +242,8 @@ Item { property Item swapOriginPad: null property bool isKeyboardSwapActive: false - Layout.alignment: Qt.AlignTop - Layout.fillHeight: true - width: cellWidth * numColumns + Layout.fillHeight: true interactive: false @@ -433,6 +433,7 @@ Item { visible: !percModel.enabled anchors.centerIn: parent + anchors.verticalCenterOffset: rowLayout.anchors.topMargin / 2 font: ui.theme.bodyFont text: qsTrc("notation/percussion", "Select an unpitched percussion staff to see available sounds")