mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-26 22:39:26 +00:00
fix: scroll to bottom when switching back from any module to chat
This commit is contained in:
parent
417194e7b4
commit
8890805a14
@ -12,6 +12,8 @@ import "../Wallet"
|
||||
|
||||
StackLayout {
|
||||
id: chatColumnLayout
|
||||
property alias chatMessages: chatMessages
|
||||
|
||||
property int chatGroupsListViewCount: 0
|
||||
|
||||
property bool isReply: false
|
||||
|
@ -11,6 +11,8 @@ import "./MessageComponents"
|
||||
|
||||
ScrollView {
|
||||
id: root
|
||||
|
||||
property alias chatLogView: chatLogView
|
||||
|
||||
property var messageList: MessagesData {}
|
||||
property bool loadingMessages: false
|
||||
|
@ -10,6 +10,8 @@ SplitView {
|
||||
id: chatView
|
||||
handle: SplitViewHandle {}
|
||||
|
||||
property alias chatColumn: chatColumn
|
||||
|
||||
property var onActivated: function () {
|
||||
chatColumn.onActivated()
|
||||
}
|
||||
|
@ -185,6 +185,10 @@ RowLayout {
|
||||
if(this.children[currentIndex] === browserLayoutContainer && browserLayoutContainer.active == false){
|
||||
browserLayoutContainer.active = true;
|
||||
}
|
||||
|
||||
if(this.children[currentIndex] === chatLayoutContainer){
|
||||
chatLayoutContainer.chatColumn.chatMessages.chatLogView.scrollToBottom(true);
|
||||
}
|
||||
}
|
||||
|
||||
ChatLayout {
|
||||
|
Loading…
x
Reference in New Issue
Block a user