Fix HListView delegate height bug

Remove the populate transition animation, responsible for the glitch
where items overlap each others
This commit is contained in:
miruka 2019-05-17 15:18:46 -04:00
parent 5ab588f40c
commit 82edb4fc29
4 changed files with 2 additions and 18 deletions

View File

@ -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 }
}

View File

@ -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 }
)

View File

@ -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
}
}
}

View File

@ -84,8 +84,7 @@ Item {
onTriggered: pageStack.showRoom(
"@test_mary:matrix.org",
"Rooms",
//"!TSXGsbBbdwsdylIOJZ:matrix.org"
"!HfNYlUkGqcWcpDQJpb:matrix.org"
"!TSXGsbBbdwsdylIOJZ:matrix.org"
)
}