@@ -93,7 +93,11 @@ Item {
95 id: dashContentListHolder
95 id: dashContentListHolder
96− anchors.fill: parent
96+
97+ x: previewListView.open ? -width : 0
98+ Behavior on x { UbuntuNumberAnimation { } }
100+ height: parent.height
98 ListView {
102 ListView {
99 id: dashContentList
103 id: dashContentList
@@ -114,6 +118,7 @@ Item {
114 cacheBuffer: 1073741823
118 cacheBuffer: 1073741823
115 onMovementStarted: dashContent.movementStarted()
119 onMovementStarted: dashContent.movementStarted()
116 onMovementEnded: dashContent.movementEnded()
120 onMovementEnded: dashContent.movementEnded()
118 // If the number of items is less than the current index, then need to reset to another item.
123 // If the number of items is less than the current index, then need to reset to another item.
119 onCountChanged: {
124 onCountChanged: {
@@ -149,7 +154,6 @@ Item {
149 item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
154 item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
150 item.tabBarHeight = dashPageHeader.implicitHeight;
155 item.tabBarHeight = dashPageHeader.implicitHeight;
151 item.pageHeader = dashPageHeader;
156 item.pageHeader = dashPageHeader;
152− item.openEffect = openEffect;
153 item.previewListView = previewListView;
157 item.previewListView = previewListView;
154 dashContentList.movementStarted.connect(item.movementStarted)
158 dashContentList.movementStarted.connect(item.movementStarted)
155 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
159 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
@@ -219,21 +223,12 @@ Item {
222− DashContentOpenEffect {
226− bottomMargin: -bottomOverflow
228− sourceItem: dashContentListHolder
229− previewListView: previewListView
232 PreviewListView {
226 PreviewListView {
233 id: previewListView
227 id: previewListView
234− openEffect: openEffect
235 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
228 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
236 pageHeader: dashPageHeader
229 pageHeader: dashPageHeader
237− anchors.fill: parent
230+ width: parent.width
231+ height: parent.height
232+ anchors.left: dashContentListHolder.right