@@ -41,19 +41,24 @@ Item {
4141 property var myTemplate: JSON.parse('{"card-layout":"horizontal","card-size":"small","category-layout":"grid","collapsed-rows":2}')
4242 property var myComponents: JSON.parse('{"art":{"aspect-ratio":1,"field":"art"},"title":{"field":"title"},"attributes":{}}')
4343
44−
4544 ListView {
4645 id: list
47− height: contentHeight
46+
47+ readonly property double targetHeight: model.count * units.gu(6)
48+ clip: height != targetHeight
49+ height: targetHeight
50+ Behavior on height { enabled: visible; UbuntuNumberAnimation { } }
51+ width: parent.width
4852 interactive: false
4953
54+ removeDisplaced: Transition { UbuntuNumberAnimation { properties: "y" } }
55+
5056 anchors.top: header.bottom
5157 delegate: Loader {
5258 asynchronous: true
5359 width: root.width
5460 height: units.gu(6)
5561 sourceComponent: Item {
56− height: units.gu(6)
5762 width: root.width
5863 UbuntuShape {
5964 id: shape