Fix messed up delegate positions on new message
This commit is contained in:
parent
0488a7dde8
commit
3e1e924147
|
@ -17,10 +17,6 @@ Row {
|
|||
opacity: hideAvatar || collapseAvatar ? 0 : 1
|
||||
visible: width > 0
|
||||
|
||||
// Don't animate w/h of avatar itself! It might affect the sourceSize
|
||||
Behavior on width { HNumberAnimation {} }
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
|
||||
HUserAvatar {
|
||||
id: avatar
|
||||
userId: model.senderId
|
||||
|
|
|
@ -12,8 +12,8 @@ Column {
|
|||
property var previousItem: eventList.model.get(model.index + 1)
|
||||
property var nextItem: eventList.model.get(model.index - 1)
|
||||
|
||||
property int modelCount: eventList.model.count
|
||||
onModelCountChanged: {
|
||||
property int modelIndex: model.index
|
||||
onModelIndexChanged: {
|
||||
previousItem = eventList.model.get(model.index + 1)
|
||||
nextItem = eventList.model.get(model.index - 1)
|
||||
}
|
||||
|
@ -49,14 +49,12 @@ Column {
|
|||
combine ? theme.spacing / 2 :
|
||||
theme.spacing * 2
|
||||
|
||||
Loader {
|
||||
source: dayBreak ? "Daybreak.qml" : ""
|
||||
Daybreak {
|
||||
visible: dayBreak
|
||||
width: eventDelegate.width
|
||||
}
|
||||
|
||||
EventContent {
|
||||
// anchors.left: parent.left
|
||||
// anchors.right: onRight ? parent.right : undefined
|
||||
x: onRight ? parent.width - width : 0
|
||||
Behavior on x { HNumberAnimation {} }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user