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 }
|
NumberAnimation { properties: "x,y"; from: 100; duration: duration }
|
||||||
}
|
}
|
||||||
|
|
||||||
populate: Transition {
|
|
||||||
NumberAnimation { properties: "x,y"; duration: duration }
|
|
||||||
}
|
|
||||||
|
|
||||||
move: Transition {
|
move: Transition {
|
||||||
NumberAnimation { properties: "x,y"; duration: duration }
|
NumberAnimation { properties: "x,y"; duration: duration }
|
||||||
}
|
}
|
||||||
|
@ -85,8 +85,6 @@ HColumnLayout {
|
|||||||
onActiveViewChanged:
|
onActiveViewChanged:
|
||||||
activeView ? restoreAnimation.start() : hideAnimation.start()
|
activeView ? restoreAnimation.start() : hideAnimation.start()
|
||||||
|
|
||||||
property bool wasHiddenOnce: false
|
|
||||||
|
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
id: hideAnimation
|
id: hideAnimation
|
||||||
target: roomSidePane
|
target: roomSidePane
|
||||||
@ -96,7 +94,6 @@ HColumnLayout {
|
|||||||
to: 0
|
to: 0
|
||||||
|
|
||||||
onStarted: {
|
onStarted: {
|
||||||
target.wasHiddenOnce = true
|
|
||||||
target.oldWidth = target.width
|
target.oldWidth = target.width
|
||||||
target.Layout.minimumWidth = 0
|
target.Layout.minimumWidth = 0
|
||||||
}
|
}
|
||||||
@ -110,9 +107,6 @@ HColumnLayout {
|
|||||||
from: 0
|
from: 0
|
||||||
to: target.oldWidth
|
to: target.oldWidth
|
||||||
|
|
||||||
// Prevent RoomEventDelegate positions glitch on startup
|
|
||||||
onStarted: if (! target.wasHiddenOnce) { complete() }
|
|
||||||
|
|
||||||
onStopped: target.Layout.minimumWidth = Qt.binding(
|
onStopped: target.Layout.minimumWidth = Qt.binding(
|
||||||
function() { return HStyle.avatar.size }
|
function() { return HStyle.avatar.size }
|
||||||
)
|
)
|
||||||
|
@ -8,12 +8,7 @@ HRectangle {
|
|||||||
property bool collapsed: false
|
property bool collapsed: false
|
||||||
property var activeView: null
|
property var activeView: null
|
||||||
|
|
||||||
HColumnLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
|
|
||||||
MembersView {
|
MembersView {
|
||||||
Layout.fillHeight: true
|
anchors.fill: parent
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,7 @@ Item {
|
|||||||
onTriggered: pageStack.showRoom(
|
onTriggered: pageStack.showRoom(
|
||||||
"@test_mary:matrix.org",
|
"@test_mary:matrix.org",
|
||||||
"Rooms",
|
"Rooms",
|
||||||
//"!TSXGsbBbdwsdylIOJZ:matrix.org"
|
"!TSXGsbBbdwsdylIOJZ:matrix.org"
|
||||||
"!HfNYlUkGqcWcpDQJpb:matrix.org"
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user