From 010675001c7ad4d2bcefc3f0e3dc600635ece92f Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 21 Aug 2020 11:14:35 -0400 Subject: [PATCH] Add bottom margin to autocompletion UI --- src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml index 2b5a5d93..bff05337 100644 --- a/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml +++ b/src/gui/Pages/Chat/AutoCompletion/UserAutoCompletion.qml @@ -95,7 +95,12 @@ HListView { visible: opacity > 0 opacity: open && count ? 1 : 0 - implicitHeight: open && count ? Math.min(window.height, contentHeight) : 0 + bottomMargin: theme.spacing / 2 + implicitHeight: + open && count ? + Math.min(window.height, contentHeight + topMargin + bottomMargin) : + 0 + model: ModelStore.get(chat.userId, chat.roomId, "autocompleted_members") delegate: CompletableUserDelegate {