From 2d2ba1eeaf60d9dc35a8f625c5348100b9290c27 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sat, 1 Aug 2026 10:17:52 +0200 Subject: [PATCH] fix scroll: defer positionViewAtEnd to after layout --- gui/main.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/main.qml b/gui/main.qml index 2f80afb..8a29a81 100644 --- a/gui/main.qml +++ b/gui/main.qml @@ -307,16 +307,14 @@ ApplicationWindow { boundsBehavior: Flickable.StopAtBounds onCountChanged: { - if (count > 0) { - positionViewAtEnd() - } + Qt.callLater(function() { positionViewAtEnd() }) } Connections { target: chatModel function onDataChanged() { if (chatView.atYEnd) - chatView.positionViewAtEnd() + Qt.callLater(function() { chatView.positionViewAtEnd() }) } }