fix(StatusPopupMenu): update popup content to support big margins (#853)

Needed for https://github.com/status-im/status-desktop/issues/6822
This commit is contained in:
PavelS 2022-08-15 16:48:58 +03:00 committed by GitHub
parent 76cc5fda22
commit b2e8a0e282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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