From b2e8a0e282397d4ad698556639d4173e3ffd7189 Mon Sep 17 00:00:00 2001 From: PavelS Date: Mon, 15 Aug 2022 16:48:58 +0300 Subject: [PATCH] fix(StatusPopupMenu): update popup content to support big margins (#853) Needed for https://github.com/status-im/status-desktop/issues/6822 --- src/StatusQ/Popups/StatusPopupMenu.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/StatusQ/Popups/StatusPopupMenu.qml b/src/StatusQ/Popups/StatusPopupMenu.qml index c0613a78..7c3682a7 100644 --- a/src/StatusQ/Popups/StatusPopupMenu.qml +++ b/src/StatusQ/Popups/StatusPopupMenu.qml @@ -13,6 +13,7 @@ Menu { closePolicy: Popup.CloseOnPressOutside | Popup.CloseOnEscape topPadding: 8 bottomPadding: 8 + bottomMargin: 16 property int menuItemCount: 0 property var subMenuItemIcons: [] @@ -40,6 +41,13 @@ Menu { statusPopupMenu: root } + contentItem: StatusListView { + currentIndex: root.currentIndex + implicitHeight: contentHeight + interactive: contentHeight > availableHeight + model: root.contentModel + } + background: Item { id: statusPopupMenuBackground implicitWidth: 176