@@ -246,12 +246,13 @@ Rectangle {
249− Item {
249+ MouseArea {
250 id: spreadRow
250 id: spreadRow
251 // This width controls how much the spread can be flicked left/right. It's composed of:
251 // This width controls how much the spread can be flicked left/right. It's composed of:
252 // tileDistance * app count (with a minimum of 3 apps, in order to also allow moving 1 and 2 apps a bit)
252 // tileDistance * app count (with a minimum of 3 apps, in order to also allow moving 1 and 2 apps a bit)
253 // + some constant value (still scales with the screen width) which looks good and somewhat fills the screen
253 // + some constant value (still scales with the screen width) which looks good and somewhat fills the screen
254 width: Math.max(3, ApplicationManager.count) * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5
254 width: Math.max(3, ApplicationManager.count) * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5
255+ height: parent.height
255 Behavior on width {
256 Behavior on width {
256 enabled: spreadView.closingIndex >= 0
257 enabled: spreadView.closingIndex >= 0
257 UbuntuNumberAnimation {}
258 UbuntuNumberAnimation {}
@@ -264,6 +265,10 @@ Rectangle {
265 x: spreadView.contentX
266 x: spreadView.contentX
269+ spreadView.snapTo(0);
267 Repeater {
272 Repeater {
268 id: spreadRepeater
273 id: spreadRepeater
269 model: ApplicationManager
274 model: ApplicationManager