@@ -41,19 +41,24 @@ Item {
41 property var myTemplate: JSON.parse('{"card-layout":"horizontal","card-size":"small","category-layout":"grid","collapsed-rows":2}')
41 property var myTemplate: JSON.parse('{"card-layout":"horizontal","card-size":"small","category-layout":"grid","collapsed-rows":2}')
42 property var myComponents: JSON.parse('{"art":{"aspect-ratio":1,"field":"art"},"title":{"field":"title"},"attributes":{}}')
42 property var myComponents: JSON.parse('{"art":{"aspect-ratio":1,"field":"art"},"title":{"field":"title"},"attributes":{}}')
45 ListView {
44 ListView {
47− height: contentHeight
46+
47+ readonly property double targetHeight: model.count * units.gu(6)
48+ clip: height != targetHeight
50+ Behavior on height { enabled: visible; UbuntuNumberAnimation { } }
48 interactive: false
52 interactive: false
54+ removeDisplaced: Transition { UbuntuNumberAnimation { properties: "y" } }
50 anchors.top: header.bottom
56 anchors.top: header.bottom
51 delegate: Loader {
57 delegate: Loader {
52 asynchronous: true
58 asynchronous: true
53 width: root.width
59 width: root.width
54 height: units.gu(6)
60 height: units.gu(6)
55 sourceComponent: Item {
61 sourceComponent: Item {
57 width: root.width
62 width: root.width
58 UbuntuShape {
63 UbuntuShape {