@@ -718,6 +718,7 @@ AbstractStage {
718 sceneWidth: appContainer.width - root.leftMargin
718 sceneWidth: appContainer.width - root.leftMargin
719 sceneHeight: appContainer.height
719 sceneHeight: appContainer.height
720 progress: 0
720 progress: 0
721+ targetHeight: spreadMaths.stackHeight
721 targetX: spreadMaths.targetX
722 targetX: spreadMaths.targetX
722 targetAngle: spreadMaths.targetAngle
723 targetAngle: spreadMaths.targetAngle
@@ -734,7 +735,7 @@ AbstractStage {
734 angle: spreadMaths.targetAngle
735 angle: spreadMaths.targetAngle
735 itemScale: spreadMaths.scale
736 itemScale: spreadMaths.scale
736 scaleToPreviewSize: spreadItem.stackHeight
737 scaleToPreviewSize: spreadItem.stackHeight
737− scaleToPreview: true
738+ scaleToPreviewProgress: 1
738 hasDecoration: root.mode === "windowed"
739 hasDecoration: root.mode === "windowed"
740 PropertyChanges {
741 PropertyChanges {
@@ -761,15 +762,16 @@ AbstractStage {
761 y: PanelState.panelHeight
762 y: PanelState.panelHeight
762 x: stagedRightEdgeMaths.animatedX
763 x: stagedRightEdgeMaths.animatedX
763 z: index +1
764 z: index +1
765+ height: stagedRightEdgeMaths.animatedHeight
766+ requestedWidth: decoratedWindow.oldRequestedWidth
767+ requestedHeight: decoratedWindow.oldRequestedHeight
765 PropertyChanges {
769 PropertyChanges {
766 target: decoratedWindow;
770 target: decoratedWindow;
767 hasDecoration: false
771 hasDecoration: false
768− requestedWidth: stagedRightEdgeMaths.animatedWidth
769− requestedHeight: stagedRightEdgeMaths.animatedHeight - PanelState.panelHeight
770−// width: appContainer.width - root.leftMargin
771−// height: appContainer.height
772 angle: stagedRightEdgeMaths.animatedAngle
772 angle: stagedRightEdgeMaths.animatedAngle
773+ scaleToPreviewSize: spreadItem.stackHeight
774+ scaleToPreviewProgress: stagedRightEdgeMaths.progress
@@ -950,9 +952,8 @@ AbstractStage {
950 to: "spread"
952 to: "spread"
951 // DecoratedWindow wants the sceleToPreviewSize set before enabling scaleToPreview
953 // DecoratedWindow wants the sceleToPreviewSize set before enabling scaleToPreview
952 PropertyAction { target: decoratedWindow; property: "scaleToPreviewSize" }
954 PropertyAction { target: decoratedWindow; property: "scaleToPreviewSize" }
953− PropertyAction { target: decoratedWindow; property: "scaleToPreview" }
954 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
955 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
955− UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle"; duration: priv.animationDuration }
956+ UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle,scaleToPreviewProgress"; duration: priv.animationDuration }
957 Transition {
958 Transition {
958 from: "normal,staged"; to: "stagedWithSideStage"
959 from: "normal,staged"; to: "stagedWithSideStage"
@@ -1171,7 +1172,7 @@ AbstractStage {
1171 property var gesturePoints: new Array()
1172 property var gesturePoints: new Array()
1173 property real progress: -touchPosition.x / root.width
1174 property real progress: -touchPosition.x / root.width
1174− onProgressChanged: print("dda progress", progress, root.width, touchPosition.x, root.width + touchPosition.x)
1175+// onProgressChanged: print("dda progress", progress, root.width, touchPosition.x, root.width + touchPosition.x)
1176// Rectangle { color: "blue"; anchors.fill: parent }
1177// Rectangle { color: "blue"; anchors.fill: parent }
1177 onTouchPositionChanged: {
1178 onTouchPositionChanged: {