mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
commit
5760ce349d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user