Fix HListView delegate height bug
Remove the populate transition animation, responsible for the glitch where items overlap each others
This commit is contained in:
parent
5ab588f40c
commit
82edb4fc29
|
@ -7,10 +7,6 @@ ListView {
|
|||
NumberAnimation { properties: "x,y"; from: 100; duration: duration }
|
||||
}
|
||||
|
||||
populate: Transition {
|
||||
NumberAnimation { properties: "x,y"; duration: duration }
|
||||
}
|
||||
|
||||
move: Transition {
|
||||
NumberAnimation { properties: "x,y"; duration: duration }
|
||||
}
|
||||
|
|
|
@ -85,8 +85,6 @@ HColumnLayout {
|
|||
onActiveViewChanged:
|
||||
activeView ? restoreAnimation.start() : hideAnimation.start()
|
||||
|
||||
property bool wasHiddenOnce: false
|
||||
|
||||
NumberAnimation {
|
||||
id: hideAnimation
|
||||
target: roomSidePane
|
||||
|
@ -96,7 +94,6 @@ HColumnLayout {
|
|||
to: 0
|
||||
|
||||
onStarted: {
|
||||
target.wasHiddenOnce = true
|
||||
target.oldWidth = target.width
|
||||
target.Layout.minimumWidth = 0
|
||||
}
|
||||
|
@ -110,9 +107,6 @@ HColumnLayout {
|
|||
from: 0
|
||||
to: target.oldWidth
|
||||
|
||||
// Prevent RoomEventDelegate positions glitch on startup
|
||||
onStarted: if (! target.wasHiddenOnce) { complete() }
|
||||
|
||||
onStopped: target.Layout.minimumWidth = Qt.binding(
|
||||
function() { return HStyle.avatar.size }
|
||||
)
|
||||
|
|
|
@ -8,12 +8,7 @@ HRectangle {
|
|||
property bool collapsed: false
|
||||
property var activeView: null
|
||||
|
||||
HColumnLayout {
|
||||
MembersView {
|
||||
anchors.fill: parent
|
||||
|
||||
MembersView {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,8 +84,7 @@ Item {
|
|||
onTriggered: pageStack.showRoom(
|
||||
"@test_mary:matrix.org",
|
||||
"Rooms",
|
||||
//"!TSXGsbBbdwsdylIOJZ:matrix.org"
|
||||
"!HfNYlUkGqcWcpDQJpb:matrix.org"
|
||||
"!TSXGsbBbdwsdylIOJZ:matrix.org"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user