mirror of https://github.com/status-im/StatusQ.git
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:
parent
76cc5fda22
commit
b2e8a0e282
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue