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 { ...@@ -37,6 +37,7 @@ Control {
property alias overflowOpen: overflowButton.popup.visible property alias overflowOpen: overflowButton.popup.visible
property bool subMenuOpen: false property bool subMenuOpen: false
property real parentHeight
property real itemSpacing: 2 property real itemSpacing: 2
...@@ -549,7 +550,7 @@ Control { ...@@ -549,7 +550,7 @@ Control {
} }
Item { Item {
implicitHeight: children[0].contentHeight implicitHeight: (overflowButton.width + itemSpacing) * urgentOverflowListView.count
width: overflowButton.width width: overflowButton.width
anchors.bottom: parent.top anchors.bottom: parent.top
anchors.bottomMargin: itemSpacing anchors.bottomMargin: itemSpacing
...@@ -581,14 +582,15 @@ Control { ...@@ -581,14 +582,15 @@ Control {
popup: Popup { popup: Popup {
y: overflowButton.height + itemSpacing y: overflowButton.height + itemSpacing
width: overflowButton.width width: overflowButton.width
implicitHeight: contentItem.implicitHeight implicitHeight: Math.min(root.parentHeight - itemSpacing,
(overflowButton.width + itemSpacing) * overflowHiddenListView.count)
padding: 0 padding: 0
contentItem: JamiListView { contentItem: JamiListView {
id: overflowHiddenListView id: overflowHiddenListView
spacing: itemSpacing spacing: itemSpacing
implicitHeight: contentHeight implicitHeight: Math.min(contentHeight, parent.height)
interactive: false interactive: true
model: overflowButton.popup.visible ? model: overflowButton.popup.visible ?
overflowButton.delegateModel : overflowButton.delegateModel :
null null
......
...@@ -239,6 +239,7 @@ Item { ...@@ -239,6 +239,7 @@ Item {
width: parent.width width: parent.width
height: 55 height: 55
parentHeight: root.height - 81
} }
Behavior on opacity { Behavior on opacity {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment