fix scroll: defer positionViewAtEnd to after layout

This commit is contained in:
Levi Neely 2026-08-01 10:17:52 +02:00
parent 2bd7a2dca0
commit 2d2ba1eeaf
1 changed files with 2 additions and 4 deletions

View File

@ -307,16 +307,14 @@ ApplicationWindow {
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.StopAtBounds
onCountChanged: { onCountChanged: {
if (count > 0) { Qt.callLater(function() { positionViewAtEnd() })
positionViewAtEnd()
}
} }
Connections { Connections {
target: chatModel target: chatModel
function onDataChanged() { function onDataChanged() {
if (chatView.atYEnd) if (chatView.atYEnd)
chatView.positionViewAtEnd() Qt.callLater(function() { chatView.positionViewAtEnd() })
} }
} }