Add workaround for delegate stuck transition bug
Sometimes and randomly, a HListView/HGridView delegate's add/populate transition will stop before completion. This especially happens on startup when loading a large room list, one room might get stuck and left tiny or invisible, despite its normal space still being taken.
This commit is contained in:
@@ -49,4 +49,6 @@ HTile {
|
||||
Behavior on color { HColorAnimation {} }
|
||||
}
|
||||
}
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
}
|
||||
|
@@ -33,6 +33,8 @@ HColumnLayout {
|
||||
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
|
||||
HRowLayout {
|
||||
HIcon {
|
||||
svgName: "uploading"
|
||||
|
@@ -171,4 +171,6 @@ HTile {
|
||||
value: (roomPane.minimumSize - avatar.width) / 2
|
||||
when: avatar && roomPane.width < avatar.width + theme.spacing * 2
|
||||
}
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
}
|
||||
|
@@ -64,4 +64,6 @@ HTile {
|
||||
)
|
||||
item.trustSet.connect(deviceTile.trustSet)
|
||||
}
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
}
|
||||
|
@@ -84,6 +84,8 @@ HColumnLayout {
|
||||
|
||||
ListView.onRemove: eventList.uncheck(model.id)
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
visible: model.event_type !== "RoomCreateEvent"
|
||||
|
Reference in New Issue
Block a user