Merge pull request #8214 from nextcloud/backport/8201/stable-3.16

[stable-3.16] fix(gui): resize sharee search results list dependent on required space
This commit is contained in:
Matthieu Gallien 2025-04-28 09:59:58 +02:00 committed by GitHub
commit 5760ce349d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -161,7 +161,6 @@ TextField {
id: suggestionsPopup
width: root.width
height: 100
y: root.height
contentItem: ScrollView {
@ -169,6 +168,11 @@ TextField {
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: shareeListView.contentHeight > shareeListView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
// need to take the popup's padding in account for the max height
// remove bottomPadding twice to leave some space between the window border
implicitHeight: Math.min(Window.height - parent.y - parent.topPadding - parent.bottomPadding * 2, contentHeight)
ListView {
id: shareeListView