mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-24 17:35:43 +02:00
callview: enable scrolling in elipsed buttons
GitLab: #697 Change-Id: I8edada01a7c1cbe4a67fa5c399509d71cd2b446a
This commit is contained in:
parent
929c6fc0bf
commit
e897a88baf
2 changed files with 7 additions and 4 deletions
|
@ -37,6 +37,7 @@ Control {
|
|||
|
||||
property alias overflowOpen: overflowButton.popup.visible
|
||||
property bool subMenuOpen: false
|
||||
property real parentHeight
|
||||
|
||||
property real itemSpacing: 2
|
||||
|
||||
|
@ -549,7 +550,7 @@ Control {
|
|||
}
|
||||
|
||||
Item {
|
||||
implicitHeight: children[0].contentHeight
|
||||
implicitHeight: (overflowButton.width + itemSpacing) * urgentOverflowListView.count
|
||||
width: overflowButton.width
|
||||
anchors.bottom: parent.top
|
||||
anchors.bottomMargin: itemSpacing
|
||||
|
@ -581,14 +582,15 @@ Control {
|
|||
popup: Popup {
|
||||
y: overflowButton.height + itemSpacing
|
||||
width: overflowButton.width
|
||||
implicitHeight: contentItem.implicitHeight
|
||||
implicitHeight: Math.min(root.parentHeight - itemSpacing,
|
||||
(overflowButton.width + itemSpacing) * overflowHiddenListView.count)
|
||||
padding: 0
|
||||
|
||||
contentItem: JamiListView {
|
||||
id: overflowHiddenListView
|
||||
spacing: itemSpacing
|
||||
implicitHeight: contentHeight
|
||||
interactive: false
|
||||
implicitHeight: Math.min(contentHeight, parent.height)
|
||||
interactive: true
|
||||
model: overflowButton.popup.visible ?
|
||||
overflowButton.delegateModel :
|
||||
null
|
||||
|
|
|
@ -239,6 +239,7 @@ Item {
|
|||
|
||||
width: parent.width
|
||||
height: 55
|
||||
parentHeight: root.height - 81
|
||||
}
|
||||
|
||||
Behavior on opacity {
|
||||
|
|
Loading…
Add table
Reference in a new issue