Skip to content
Snippets Groups Projects
Commit e897a88b authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

callview: enable scrolling in elipsed buttons

GitLab: #697

Change-Id: I8edada01a7c1cbe4a67fa5c399509d71cd2b446a
parent 929c6fc0
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment