@@ -93,7 +93,11 @@ Item {
9393
9494 Item {
9595 id: dashContentListHolder
96− anchors.fill: parent
96+
97+ x: previewListView.open ? -width : 0
98+ Behavior on x { UbuntuNumberAnimation { } }
99+ width: parent.width
100+ height: parent.height
97101
98102 ListView {
99103 id: dashContentList
@@ -114,6 +118,7 @@ Item {
114118 cacheBuffer: 1073741823
115119 onMovementStarted: dashContent.movementStarted()
116120 onMovementEnded: dashContent.movementEnded()
121+ clip: parent.x != 0
117122
118123 // If the number of items is less than the current index, then need to reset to another item.
119124 onCountChanged: {
@@ -149,7 +154,6 @@ Item {
149154 item.isCurrent = Qt.binding(function() { return visible && ListView.isCurrentItem })
150155 item.tabBarHeight = dashPageHeader.implicitHeight;
151156 item.pageHeader = dashPageHeader;
152− item.openEffect = openEffect;
153157 item.previewListView = previewListView;
154158 dashContentList.movementStarted.connect(item.movementStarted)
155159 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
@@ -219,21 +223,12 @@ Item {
219223 }
220224 }
221225
222− DashContentOpenEffect {
223− id: openEffect
224− anchors {
225− fill: parent
226− bottomMargin: -bottomOverflow
227− }
228− sourceItem: dashContentListHolder
229− previewListView: previewListView
230− }
231−
232226 PreviewListView {
233227 id: previewListView
234− openEffect: openEffect
235228 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
236229 pageHeader: dashPageHeader
237− anchors.fill: parent
230+ width: parent.width
231+ height: parent.height
232+ anchors.left: dashContentListHolder.right
238233 }
239234}