Try to avoid QTBUG-89568

This commit is contained in:
Nicolas Werner 2021-02-10 14:38:41 +01:00
parent a62276c289
commit 6a2e8a6952
2 changed files with 2 additions and 2 deletions

View file

@ -194,7 +194,7 @@ ListView {
Connections {
target: chat
onMovementEnded: {
if (y + height + 2 * chat.spacing > chat.contentY + chat.height && y < chat.contentY + chat.height)
if (y + height + 2 * chat.spacing > chat.contentY + timelineRoot.height && y < chat.contentY + timelineRoot.height)
chat.model.currentIndex = index;
}

View file

@ -1,6 +1,6 @@
TextMessage {
font.italic: true
color: colors.buttonText
height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined
height: isReply ? Math.min(timelineRoot.height / 8, implicitHeight) : undefined
clip: isReply
}