diff --git a/src/gui/filedetails/ShareeSearchField.qml b/src/gui/filedetails/ShareeSearchField.qml index 35c72b1ed5..adda7a987e 100644 --- a/src/gui/filedetails/ShareeSearchField.qml +++ b/src/gui/filedetails/ShareeSearchField.qml @@ -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