@@ -283,23 +283,23 @@ Rectangle {
286− anchors { left: parent.left; top: parent.top; leftMargin: -height / 2; topMargin: -height / 2 }
287+ anchors { left: parent.left; top: parent.top; leftMargin: -height / 2; topMargin: -height / 2 + spreadMaths.closeIconOffset }
287 source: "graphics/window-close.svg"
288 source: "graphics/window-close.svg"
288 visible: spreadSelectArea.upperThirdContainsMouse || closeMouseArea.containsMouse
289 visible: spreadSelectArea.upperThirdContainsMouse || closeMouseArea.containsMouse
289 height: units.gu(1.5)
290 height: units.gu(1.5)
290 width: height
291 width: height
291 sourceSize.width: width
292 sourceSize.width: width
292 sourceSize.height: height
293 sourceSize.height: height
296− anchors.fill: parent
297− anchors.margins: -units.gu(1)
299− onClicked: ApplicationManager.stopApplication(model.appId)
298+ anchors.fill: closeImage
299+ anchors.margins: -units.gu(1)
301+ onClicked: ApplicationManager.stopApplication(model.appId)
304 ColumnLayout {
304 ColumnLayout {
305 id: tileInfo
305 id: tileInfo
@@ -334,16 +334,10 @@ Rectangle {
334 contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
334 contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
335 enabled: false
335 enabled: false
338− //boundsBehavior: Flickable.StopAtBounds
340 onContentXChanged: print("contentXChanged", contentX)
337 onContentXChanged: print("contentXChanged", contentX)
342− function ensureVisible(index) {
346 function snapTo(contentX) {
339 function snapTo(contentX) {
340+ snapAnimation.stop();
347 snapAnimation.to = contentX
341 snapAnimation.to = contentX
348 snapAnimation.start();
342 snapAnimation.start();
@@ -446,18 +440,6 @@ Rectangle {
446 visible: false
440 visible: false
450− anchors { left: parent.left; bottom: parent.bottom; margins: units.gu(1) }
451− text: "Progress: " + (spreadFlickable.contentX / (spreadFlickable.contentWidth - spreadFlickable.width)).toFixed(3) +
452− ", ContentX: " + spreadFlickable.contentX +
453− ", Width: " + spreadFlickable.width +
454− ", ContentWidth: " + spreadFlickable.contentWidth
461 states: [
443 states: [
463 name: "windowed"
445 name: "windowed"