From 11b58a1a157e0af7c42061ad6f93459807ecde59 Mon Sep 17 00:00:00 2001 From: AT Date: Mon, 8 Jul 2024 12:26:44 -0400 Subject: [PATCH] Fix scrolling of the chat view at expense of some more memory usage. (#2555) Signed-off-by: Adam Treat --- gpt4all-chat/qml/ChatView.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 083bf8f5..f231d975 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -776,6 +776,7 @@ Rectangle { Layout.alignment: Qt.AlignHCenter spacing: 25 model: chatModel + cacheBuffer: Math.max(0, listView.contentHeight) ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded