From 4b7ce1a1952c778e9418a81b2d9df010beb1a04a Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 14 Jul 2020 03:14:05 -0400 Subject: [PATCH] Auto-expand room pane when filter field focused --- src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml | 1 + src/gui/Pages/Chat/RoomPane/RoomPane.qml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml index ea2f2716..51e2ab68 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberView/MemberView.qml @@ -11,6 +11,7 @@ HColumnLayout { [chat.userId, chat.roomId, "filtered_members"] readonly property alias viewDepth: stackView.depth + readonly property alias filterField: filterField HStackView { diff --git a/src/gui/Pages/Chat/RoomPane/RoomPane.qml b/src/gui/Pages/Chat/RoomPane/RoomPane.qml index d1db4f96..b382fbcd 100644 --- a/src/gui/Pages/Chat/RoomPane/RoomPane.qml +++ b/src/gui/Pages/Chat/RoomPane/RoomPane.qml @@ -33,7 +33,9 @@ MultiviewPane { buttonRepeater.count >= 1 ? buttonRepeater.itemAt(1).implicitWidth : 0 requireDefaultSize: - swipeView.currentIndex !== 0 || swipeView.currentItem.viewDepth > 1 + swipeView.currentIndex !== 0 || + swipeView.currentItem.viewDepth > 1 || + swipeView.currentItem.filterField.activeFocus buttonsBackgroundColor: theme.chat.roomPane.topBar.background background: Rectangle { color: theme.chat.roomPane.background }