Auto-expand room pane when filter field focused

This commit is contained in:
miruka 2020-07-14 03:14:05 -04:00
parent c018c04cab
commit 4b7ce1a195
2 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@ HColumnLayout {
[chat.userId, chat.roomId, "filtered_members"] [chat.userId, chat.roomId, "filtered_members"]
readonly property alias viewDepth: stackView.depth readonly property alias viewDepth: stackView.depth
readonly property alias filterField: filterField
HStackView { HStackView {

View File

@ -33,7 +33,9 @@ MultiviewPane {
buttonRepeater.count >= 1 ? buttonRepeater.itemAt(1).implicitWidth : 0 buttonRepeater.count >= 1 ? buttonRepeater.itemAt(1).implicitWidth : 0
requireDefaultSize: 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 buttonsBackgroundColor: theme.chat.roomPane.topBar.background
background: Rectangle { color: theme.chat.roomPane.background } background: Rectangle { color: theme.chat.roomPane.background }