@@ -718,6 +718,7 @@ AbstractStage {
718718 sceneWidth: appContainer.width - root.leftMargin
719719 sceneHeight: appContainer.height
720720 progress: 0
721+ targetHeight: spreadMaths.stackHeight
721722 targetX: spreadMaths.targetX
722723 targetAngle: spreadMaths.targetAngle
723724 }
@@ -734,7 +735,7 @@ AbstractStage {
734735 angle: spreadMaths.targetAngle
735736 itemScale: spreadMaths.scale
736737 scaleToPreviewSize: spreadItem.stackHeight
737− scaleToPreview: true
738+ scaleToPreviewProgress: 1
738739 hasDecoration: root.mode === "windowed"
739740 }
740741 PropertyChanges {
@@ -761,15 +762,16 @@ AbstractStage {
761762 y: PanelState.panelHeight
762763 x: stagedRightEdgeMaths.animatedX
763764 z: index +1
765+ height: stagedRightEdgeMaths.animatedHeight
766+ requestedWidth: decoratedWindow.oldRequestedWidth
767+ requestedHeight: decoratedWindow.oldRequestedHeight
764768 }
765769 PropertyChanges {
766770 target: decoratedWindow;
767771 hasDecoration: false
768− requestedWidth: stagedRightEdgeMaths.animatedWidth
769− requestedHeight: stagedRightEdgeMaths.animatedHeight - PanelState.panelHeight
770−// width: appContainer.width - root.leftMargin
771−// height: appContainer.height
772772 angle: stagedRightEdgeMaths.animatedAngle
773+ scaleToPreviewSize: spreadItem.stackHeight
774+ scaleToPreviewProgress: stagedRightEdgeMaths.progress
773775 }
774776 },
775777 State {
@@ -950,9 +952,8 @@ AbstractStage {
950952 to: "spread"
951953 // DecoratedWindow wants the sceleToPreviewSize set before enabling scaleToPreview
952954 PropertyAction { target: decoratedWindow; property: "scaleToPreviewSize" }
953− PropertyAction { target: decoratedWindow; property: "scaleToPreview" }
954955 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 }
956957 },
957958 Transition {
958959 from: "normal,staged"; to: "stagedWithSideStage"
@@ -1171,7 +1172,7 @@ AbstractStage {
11711172 property var gesturePoints: new Array()
11721173
11731174 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)
11751176
11761177// Rectangle { color: "blue"; anchors.fill: parent }
11771178 onTouchPositionChanged: {